Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Variables 1

Status
Not open for further replies.

gio2888

Technical User
Oct 26, 2000
64
US
Hi all! I am writing a login in page for a set of webapges. The login is done, but I need to implement the session for the group of pages so that when someone types in the url of a page, it will recognize that the user has not logged in, and it will redirect to the login page...can someone give me some pointers on how to implement this (whats needed in the login and whats needed in the group of pages)? Thanks in Advance!!!
 
upon succesful login set a session variable of some sort...

session("userID") = rs(0)

on every page check for it

if session("userID") = "" then
response.redirect "login.asp"
end if

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top