Login View Problem [modified]
-
Hi all, In a ASP.NET website, I have used Login View to show the Login Status. For Login I have used Login Control. It is showing status correctly. But after few idle minutes, it is automatically login view text changing to "login" But user is already logged in. I think this is Session problem. I have used below line earlier. I commented it now. Still same problem. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400" /> pl.help me out Ramesh Sambari
Knowledge is like honey. Collect it, to make life sweet.
modified on Thursday, September 17, 2009 1:03 AM
-
Hi all, In a ASP.NET website, I have used Login View to show the Login Status. For Login I have used Login Control. It is showing status correctly. But after few idle minutes, it is automatically login view text changing to "login" But user is already logged in. I think this is Session problem. I have used below line earlier. I commented it now. Still same problem. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400" /> pl.help me out Ramesh Sambari
Knowledge is like honey. Collect it, to make life sweet.
modified on Thursday, September 17, 2009 1:03 AM
specialdreamsin wrote:
But user is already logged in
How do you know it?
specialdreamsin wrote:
I think this is Session problem
What is your session timeout limit? Is it timing out before that?
specialdreamsin wrote:
I have used below line earlier. I commented it now. Still same problem.
You haven't provided any line.
specialdreamsin wrote:
I have used Login View to show the Login Status
Do you really need a control for simple login purpose?
Navaneeth How to use google | Ask smart questions
-
specialdreamsin wrote:
But user is already logged in
How do you know it?
specialdreamsin wrote:
I think this is Session problem
What is your session timeout limit? Is it timing out before that?
specialdreamsin wrote:
I have used below line earlier. I commented it now. Still same problem.
You haven't provided any line.
specialdreamsin wrote:
I have used Login View to show the Login Status
Do you really need a control for simple login purpose?
Navaneeth How to use google | Ask smart questions
plz...Look at my Original Message now.. I unexpectedly ticked the option Do not interpret HTML tags (good for code snippets) While posting message. pl.look in to it and reply me. Ramesh Sambari
Knowledge is like honey. Collect it, to make life sweet.
-
plz...Look at my Original Message now.. I unexpectedly ticked the option Do not interpret HTML tags (good for code snippets) While posting message. pl.look in to it and reply me. Ramesh Sambari
Knowledge is like honey. Collect it, to make life sweet.
specialdreamsin wrote:
sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400"
What is that ? :omg: what is the use of stateConnectionString and sqlConnectionString over Inproc Session Mode ? Please read this article,It will help. Exploring Session in ASP.Net[^]
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
specialdreamsin wrote:
sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseCookies" timeout="1400"
What is that ? :omg: what is the use of stateConnectionString and sqlConnectionString over Inproc Session Mode ? Please read this article,It will help. Exploring Session in ASP.Net[^]
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
hi, In my website, First is the Login Page. I used Login Control for that. On Successful Login I am assigning to a Sesssion variable i-e Session("UserId")="user1". Next page is the Main.aspx, In this I used Login view control. It is showing as user1 [Signout]. Its correct. After few minutes...if I am idle ... the Loginview message is changing to user1[Signin] in the main page. Session("UserId") is still user1, but login view is showing wrong information. This is the problem. Plz help me. Ramesh Sambari
Knowledge is like honey. Collect it, to make life sweet.
-
hi, In my website, First is the Login Page. I used Login Control for that. On Successful Login I am assigning to a Sesssion variable i-e Session("UserId")="user1". Next page is the Main.aspx, In this I used Login view control. It is showing as user1 [Signout]. Its correct. After few minutes...if I am idle ... the Loginview message is changing to user1[Signin] in the main page. Session("UserId") is still user1, but login view is showing wrong information. This is the problem. Plz help me. Ramesh Sambari
Knowledge is like honey. Collect it, to make life sweet.
Did you read the article link that I have provided to you ? :)
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.