Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   session expired (http://www.go4expert.com/forums/session-expired-t12517/)

sivaprasadnkv 28Jul2008 12:21

session expired
 
HI,

I am using VS2003 with vb.net
in web.config i gave timeout as 20 minutes it is working and logout after timeout period.
if i gave time out as 1 hour ie 60 minutes then it is not working and its logout after 20 min.
what is the problem..


plzzzz reply me its urgent

AbhinavMoudgil 11Aug2008 11:37

Re: session expired
 
Hi...

If you won't define any time in your session then also your session will expire in 20 minutes as the default time for a session to expire is 20 mins.
Kindly let me know that where exatly are you defining your session expiry time and also what code are you using.
I will suggest you to use the code given below to expire your session
<configuration>
<sessionstate
mode="inproc"
cookieless="false"
timeout="60"
sqlconnectionstring="your connection string;user id=<user id>;password=<password>"
server="server name"
port="your port number"
/>
</configuration>


Hope this may help . If you still feel like having problem then let me know your code you are using to expire your session.

Regards


Quote:

Originally Posted by sivaprasadnkv
HI,

I am using VS2003 with vb.net
in web.config i gave timeout as 20 minutes it is working and logout after timeout period.
if i gave time out as 1 hour ie 60 minutes then it is not working and its logout after 20 min.
what is the problem..


plzzzz reply me its urgent


pradeep 11Aug2008 13:07

Re: session expired
 
Try this http://forums.asp.net/t/1101560.aspx


All times are GMT +5.5. The time now is 03:11.