Current location: Hot Scripts Forums » Programming Languages » PHP » session question

session question

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-06-09, 04:28 AM
jonnekke jonnekke is offline
Junior Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 641
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Security (Continued from post below) nova912 PHP 1 09-05-06 10:29 AM
Injecting a string into an If Statement ? nova912 PHP 4 07-21-06 03:04 PM
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' Dr. Forensics PHP 3 07-15-06 04:54 PM
Simple Session ID Length Question? nova912 PHP 1 06-11-06 05:30 PM


All times are GMT -5. The time now is 12:27 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.