Jump to content

Archived

This topic is now archived and is closed to further replies.

umbrella_thing

A very simple question.....i think

Recommended Posts

Simply.

How do I get the session id ?
I want to use it as a primary key in a table.. but .. I dont how to "get" it..
Its gotta be something totally simple right?

Thanks dudes!

Share this post


Link to post
Share on other sites
$arr = explode('=', SID);

echo "session id is " . $arr[1];

//$arr[1] hold the session id

Share this post


Link to post
Share on other sites
[code=php:0]echo session_id();[/code]


Does that work?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.