Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: session and authentication


Message #1 by rabihy@h... on Sat, 2 Mar 2002 22:31:49
Hello,



I am trying to use SessionOnStart for checking cookies and get the user 

preferences, or redirect the user to a login page once they log in from 

global.asax... and then i want to keep their preferences (username) in 

session variable and then detect when they log off with SessionOnEnd... i 

am not able to implemtent it.. any code example please?

thank you in advance

Message #2 by rabihy@h... on Sun, 3 Mar 2002 02:00:36
I want to add one more thing. Is there any way to got a list of poeple who 

are authenticated at the moment in my serever? i use Form Authentication...



Why i am asking this question, because i want to know who is online at 

this moment. I thought of checking who is online by acessing the list of 

poeple who are authenticated at this moment. Is this possible?



I thought of addiding them to an application once they authenticate. But i 

have one problem, if poeple have not signed out using the button (sign 

out), and just shut the browser. How can i check if they are online?  And 

can i check if person is online at the moment by using the 

Authentication?  I know that Session (SessionStart SessionOnEnd) is 

another alternative but my question is focusing on Forms Authentication. 

Do you think i can use both them together (Session and Forms 

Authentication) to keep tracking of who is online? .

  Return to Index