RE: FW: expiring sessions between 2 domains..help :(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Aaron-

This is the first time I've seen this thread so I apologize in advance if I'm saying something someone else has already said.

Have you used the session_unset(variablename) and session_destroy() functions in your script?

I ran into the same problem a while back;  I was able to get the site to forget the values assigned to session variables by using session_unset with the variable in question in the ()'s.  Then I was able to get session_destroy() to kill the session.

Here's what PHP.net says about each:

session_unset: http://www.php.net/manual/tw/function.session-unset.php
session_destroy: http://www.php.net/manual/tw/function.session-destroy.php

You might want to also look at session_unregister().

Hope this helps-

Jason

-----
Jason Helms
Systems Administrator
American Mining Insurance Company

-----Original Message-----
From: Aaron Wolski [mailto:aaronjw@martekbiz.com]
Sent: Tuesday, May 06, 2003 11:03 AM
To: php-db@lists.php.net
Subject:  FW: expiring sessions between 2 domains..help :( 


Sorry all,
 
I have to bump this up.I am seriously getting desperate and NEED help in
killing a session entirely once the order has been placed.
 
Everything I try fails.
 
Problem again is that when I close the browser and return to the site.my
cart shows an order as it pertains to my previous order selection. If I
refresh the page.. the information is gone. 
 
ANY ideas?
 
 
Thanks a ton.
 
Aaron
 
-----Original Message-----
From: Aaron Wolski [mailto:aaronjw@martekbiz.com] 
Sent: May 6, 2003 9:03 AM
To: 'php-db@lists.php.net'
Subject: expiring sessions between 2 domains..help :( 
 
Hi All,

Ok.. here's the scoop!

Background:

Client owns one ecommerce site. We're building another ecommerce site
with different products/theme.

To save on costs.. client wants to use his SSL server of the first
Ecommerce site for this new site.

Problem:

Initially wanted to use cookies to store the session variable which
holds shopping cart contents. Can't do that because of the different
domains ( <http://www.newsite.com> http://www.newsite.com AND
<https://oldsite.com> https://oldsite.com).

Went to sessions and passed the PHPSESSID to the secure area to transfer
customer data. 

This works fine until the transaction is complete and we pass the
visitor back to the non-secure site...session is still active UNTIL a
page refresh is done by the visitor.

Even more of a problem is when I close down ALL windows.. hell even if I
reboot the client computer and go back to the site the session is still
active UNTIL a manual refresh of the page is done.


Can anyone help me in how I do a full proof method of expiring sessions
and session data once I have finalized the order?


Thanks all.

Any help is appreciated!

Regards,

Aaron

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux