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
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