I have an application that creates a CGI::Session on Server1 and passes it around using http requests
Then at a certain point I need to make an https request to server2. I have no problem picking up the session on Server2.
Once the processing on Server2 is complete I perform a
my $url =qq(http://server1.xxx.yy.zz/cgi-bin/server1.pl?id=$id);
$page->redirect($url);
server1.pl then executes the following code
my $session_dbh = DBI->connect('dbi:Pg:dbname=xyzzy') or die $DBI::err
+str;
my $id = $page->param('id');
my $session = CGI::Session->new("driver:PostgreSQL", $id, {Handle=>$se
+ssion_dbh});
my $currid = $session->id();
When I then check the the two ids they do not match $currid is in fact a new session
and the old session has been deleted
Any thoughts would be very helpful
UPDATE:Found it the clocks on server2 was an hour behind
and my session was set to expire after 15 mins so when
server1 went to check the last time the session had been active it
thought it had timed out :(
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.