View Single Post
  #1 (permalink)  
Old 11-06-09, 04:28 AM
jonnekke jonnekke is offline
Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 704
Thanks: 0
Thanked 0 Times in 0 Posts
session question

Hi there..

We run a Magento Webshop at the moment. This shop creates 8 sessions by itself.
For a affiliate program I want to add "my own" session (named: affiliate).

I create this with:
PHP Code:

$_SESSION['affiliate']  = 'yes'
When I echo my sessions this is in the list as it should be.. so far no problems.
Now I'm wondering how long the session lasts and can I set the lifetime for this
session only? So I don't mess up the other sessions that are created by Magento.

And is a session destroyed when the browser is closed, right? Or only after session_destroy
and after the lifetime expires?..

_j
Reply With Quote