Session Lost
-
Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You
-
Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You
What is the SessionState Mode[^] in your web.config? Is it set to off?
Be careful, there is no Undo Button(Ctrl+Z) in life.
-
What is the SessionState Mode[^] in your web.config? Is it set to off?
Be careful, there is no Undo Button(Ctrl+Z) in life.
Dear Sir, I am using sessionstate mode="InProc" cookieless="false" timeout="40" Every thing was working fine a week ago. Thank You
-
Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You
Waheed Ur Rehman wrote:
i have checked after response.Redirect the session is lost and the value is null on the redirected page.
Can you please put the line of code for Response.Redirect() and Session Store ?
cheers, Abhijit CodeProject MVP My Recent Article : Exploring Session in ASP.Net
-
Hi all, I am facing a strange problem regarding session variables. I developed a website where a kept the login information in Session variables. It worked fine but now Session is not maintained i have checked after response.Redirect the session is lost and the value is null on the redirected page. I have searched a lot and tried many solutions but useless. I have only one session variable which is used to store the user name to display it on all pages and allowing some login based functionality. Please help me in this issue. Looking forward to hear a solution from codeproject. Thank You
-
Hey....U can directly put username in session. Session["UserInfo"] = LoginName; and u can access that value in another page like string Loginname=Session["UserInfo"].toStirng();
As per his replies, He tried that and problem lies somewhere else :)
dnpro "Very bad programmer" My Latest Articles RichTextBox Control with Find functionality LogViewer - A Simple Log Listening Utility