CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Site Logging Users Out....

Print topic Send  topic

Author Message
sgadson

Posts: 45
Posted: 08/30/2004, 6:06 PM

Can anyone send me the code for a vb.net application to change the time it takes before a user is automatically logged out of my web site.

I believe that currently my users are being logged out after 15 mins of inactivity.

Can anybody help?
_________________
Shawn :-)
View profile  Send private message
Stan
Posted: 08/31/2004, 12:53 AM

Shawn

Try the folowing code in Page After Initialize event
Session.Timeout = 40 ' minutes


Stan
E43509

Posts: 283
Posted: 08/31/2004, 5:32 AM

In addtion to your web.config file can/may have settings for the entire app
please look for this code in your web.config

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="60"
/>
View profile  Send private message
sgadson

Posts: 45
Posted: 08/31/2004, 8:05 AM

:-) Thanks Stan!

The code in the Page After Initialize event seems to be working perfectly.

E43509:

I wasn't able to locate the code you pointed out in my web.config. Any ideas why it wouldn't be there? Is this code that Code Charge automatically sets up in the web.config?


_________________
Shawn :-)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.