Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have set InProc session time out in my web.config .
after 1 minute its redirect to logout page . in logout page i want to capture the logout time of that User , which i am not getting because after 1 minute all session values get NULL.

<sessionstate mode="InProc" timeout="1">

Please help me how i will get that User value if timeout happen through web.config

What I have tried:

tried from google but not getting any answer
Posted
Updated 14-Aug-16 15:47pm

1 solution

C#
if(Session.IsNewSession){
initSession();
}



C#
private void initSession()
{
    Session.Clear();
    Session.Abandon();
    Response.Redirect("LoginPage.aspx");
}


try this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900