|
-
Jan 6th, 2005, 11:40 AM
#1
Thread Starter
Addicted Member
Losing Session (annoying me!)
Hi there
I've come across this problem before, and by searching on the net for a solution I can see that many other people have also. I've searched everywhere and I can still cannot find a solution for it.
This is whats happening:
I log into my web app thru a simple login screen. When the user clicks 'login' I validate the user, add them to the session (Session.Add(User, UserID)), and then response.redirect them to the next page. On the next page I can find the session no problem. From there however, I have links to other .aspx pages. All these links are asp:linkbuttons and the only code behind them is a response.redirect(nextpage.aspx). On these next pages I lose the session. It just clears itself for no apparent reason. On the odd occasion it exists though ! This is seriously annoying me. It only happens on the server where I've uploaded the site too, it does not lose the session on my local machine.
The two common issues I've found on the net with this problem is that either the aspnet_wp process is resetting itself (probably by modifying the bin folder, which I do not, it only contains my dll), or the response.redirect is stopping the asp.net session cookie from being sent from the client to the server when I add the user to the session.
Help !!
Thanks
Patch
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|