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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

validating Sessions in Perl CGI

Status
Not open for further replies.

imad77

Instructor
Oct 18, 2008
97
CA
Hi,

I am developing a system where upon login (valid username and password) a session is started.

My first script (script1.pl) contain the login and a menu of 2 actions. Each action calls another scripts (script2.pl and script3.pl).

I want to check at top of every page if the session is still valid or the user has logged out. If the user has logged out they should be redirected to the script1.pl page.

My concern is if someone has logged out, he could not be granted access.

I would really apprecite if you could provide me with the script for creating session after successful login and validating this session at everypage.

Thanks all for your prompt help and concern.

Imad77
 
Go look at CGI::Session on cpan.org It will have everything you need.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top