Forms - VB Session identifier

Upload core product.
Post Reply
sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Forms - VB Session identifier

Post by sliceofpie »

Hi,
I'm using a simple form to create a password protected login for JFileUpload. I was able to follow the directions to get JFileUpload working with process.aspx but came across "server error HTTP/1.1 302 Found". After doing some research I found out that I need to set

<PARAM NAME="url" VALUE="http://server.com/script.jsp;jsessionid=ABC123">
<PARAM NAME="forward" VALUE="http://server.com/page.jsp;jsessionid=ABC123">

in the applet_http_aspx.js file :? . I tried doing
document.write('url="http://idr/idr/process.aspx?User.Identi ... myUserName" ')
but that doesn't seem to be working.

Can someone point me into the right direction? :|
Last edited by sliceofpie on Sat Aug 21, 2010 2:43 am, edited 1 time in total.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Forms - VB Session identifier

Post by support »

I think you should use cookies instead. See:
http://www.jfileupload.com/products/jfi ... ation.html

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Forms - VB Session identifier

Post by sliceofpie »

Thanks for the link. How do I use the session Cookie identifier in VB/ASP.Net?

Is there a sample I can try out? Any suggestion would greatly help me as I've tried getting this to work but haven't succeeded.
Last edited by sliceofpie on Sat Aug 21, 2010 2:43 am, edited 1 time in total.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Forms - VB Session identifier

Post by support »

You have to check you ASP.NET session cookie is "ASP.NET_SessionId" so you have to get session id value and then setup applet parameter as:

Code: Select all

<PARAM NAME="param6" VALUE="cookiename">
<PARAM NAME="value6" VALUE="ASP.NET_SessionId">
<PARAM NAME="param7" VALUE="cookievalue">
<PARAM NAME="value7" VALUE="<%= YOURSESSIONIDHERE %>">
You have similar sample at:
viewtopic.php?f=2&t=246&p=990&hilit=ASP ... ionId#p990

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Forms - VB Session identifier

Post by sliceofpie »

I apologize for not completely understanding as I will need some more help. As you can tell I'm a beginnner at this :) But I'm eager to get this figured out.

I'm using the parameters below but still getting a 302 error

Code: Select all

<PARAM NAME="param6" VALUE="cookiename">
<PARAM NAME="value6" VALUE="ASP.NET_SessionId">
<PARAM NAME="param7" VALUE="cookievalue">
<PARAM NAME="value7" VALUE="Session.SessionID">

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Forms - VB Session identifier

Post by sliceofpie »

I've figured it out! :arrow: :P

Code: Select all

<param name="param6" value="cookiename">
<param name="value6" value="<%= FormsAuthentication.FormsCookieName %>">
<param name="param7" value="cookievalue">
<param name="value7" value="<%= (FormsAuthentication.FormsCookieName).Value %>">

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Forms - VB Session identifier

Post by support »

Great. You was using FormsAuthentication API that why's regular ASP.NET session id was not working.

Post Reply