Posted on 2005-05-21 17:27:04-07 by alexperl
problem with sessionID
HI, Im having problem with CGI::Session. I need to assign same session id to user who adds items to shopping cart. But it creates different ids everytime Im adding item. Im using IIS server, and I dont see any cookies or session data which should be stored on my computer.It only prints cookie in browser. I tried different methods nothing works. Here is script, as described in tutorial:
use CGI; $cgi = new CGI; $session = new CGI::Session(undef, $cgi, {Directory=>'/tmp'}); $cookie = $cgi->cookie(CGISESSID => $session->id ); print $cgi->header(-cookie=>$cookie); $sid=$session->id();
Anybody can give any solution?
Direct Responses: 1017 | 1131 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.