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 -> ASP

 Logout

Print topic Send  topic

Author Message
ArthurDent
Posted: 02/12/2006, 10:52 PM

Is there possible to do that when browser is closed,the user have to login again.

I mean that, when user is logged in, they can jump page to page, but when they close the browser, then they have to login again.

Could there use timed logout, if the user leaves the page open?

AD
mrachow


Posts: 509
Posted: 02/13/2006, 12:56 AM

Quote :
Could there use timed logout, if the user leaves the page open?
Usually the web server closes a session after a certain interval of inactivity on client side. For IIS it's 10 or 20 minutes as default timeout.

You can set this value (to five minutes for example) in ASP with
Session.Timeout = 5

_________________
Best regards,
Michael
View profile  Send private message
Arthur Dent
Posted: 02/13/2006, 9:36 AM

Thanks!

AD
Arthur Dent
Posted: 02/20/2006, 12:22 AM

Can someone tell me what or where is something wrong.
When I login to my pages and then I close the browser and open again the page, the login window is not coming but browser just opens the page.

I mean that everytime I open the page, I'll have to do login again.

What's wrong.

AD
Oper


Posts: 1195
Posted: 02/20/2006, 9:36 AM

that shoud not happend cause as soon you close the browser Session varibale will go byebye.

2 Thing maybe be hapenning

1) That page dont have Restrited Property Set (thsi may be the isue)
2) Cache (you could use Response.expires)

_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
TheunisP

Posts: 342
Posted: 02/20/2006, 9:47 AM

or 3) there was more than 1 of that browser instance opened e.g. ctrl N or File-New-Window was used - the last 1 you closed was not all them - and that you might be using an 'old' browser window?

View profile  Send private message
Arthur Dent
Posted: 02/20/2006, 10:04 AM

Thanks!
It was the browser.

AD :-)
marcwolf


Posts: 361
Posted: 02/20/2006, 3:33 PM

Re - keeping session open.

One of our clients had a strange request. They wanted a way to have screen saver on a browser window so that after 5 mins the saver would pop-up, and then after 10 mins it would return them to the login page - resetting the session variables.

The catch there was - that if the user was typing for about 30 mins when they submitted the form the session would have timed out (we kept the 20min session timeout).

As I now had a mechanism to log-out re inactivity I added a small piece of javascript that created a iframe, and then called a ASP page that used a session variable. This ran using SetInterval every 10 mins and so kept the session alive until the user had finished.

99% of instances there would be no need for this mechanism to be activated but in the few cases it was used it worked very well.


Hope this helps someone

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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