Session control with Forms authentication and cookie expire time?

G

Guest

Hi

Can anyone give me advise about following topics:

1. I want to trace user log in and log out time in my asp.net web
application? I can easely handle moment of log in and to store in anywhere
(for example in database) but how can i handle the moment of log out if user
doesn't use log out feature of my web application but juse close the web
browser? Is there any event which is raised then?
2.How can I create cookie with no expiration time for Forms
Authentication?i.e. i want my cookies to live as long as the web browser is
open?

Thanks in advance
 
C

chanmmn

You got to use session time out. You don't really need the cookie that is
not expire. By right cookie is meant to be expired.

chanmm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top