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

Multiple unique sessions per domain

Status
Not open for further replies.

Zhris

Programmer
Aug 5, 2008
254
GB
Hi,

Is it possible to run 2 entirely separate sessions using CGI::Session under the same domain?

I am having problems with 2 scripts conflicting. A login script I want to use simply creates a session if login details are correct, then the secure page checks if the session exists. However, a different script creates a session to store data, therefore a session exists and you no longer have to login to view the secure page.
I have worked around this problem by creating a LoggedIn param $session->param(-name => 'LoggedIn', -value => 1); and I check if this exists as well, but i'm not sure if this is the right way to go about it. My login script is based on a script I found here: and i'm unsure that simply checking whether the session is not expired nor empty is a suitable method (especially if it conflicts with other scripts).

Can somebody advise me how to keep sessions running under the same domain seperate?

Thanks,

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top