Enabling trans_sid_id

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Enabling trans_sid_id

Post by lostboy »

I am working on a site where sessions are doing weird things - like dropping between pages. I want to see if, by enabling trans_sid, I can propogate the session id in the url and keep the sessions alive....

Having trouble getting the ini_set statement to work...


Code: Select all

//index.php 
session_start();
ini_set(use_trans_sid,1);

What is the correct way to do this? Should I merely add the id to the links between the pages by appending it to the URL?

TIA
Post Reply