By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,649 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

Session_name

P: n/a
Hi

Is is possible to set the session_name using a defined constant?

For example

session_name(UNIQUE_NAME);

where UNIQUE_NAME is defined in another file

define('UNIQUE_NAME', 'MRKLB');

Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
bi*******@gmail.com wrote:
Is is possible to set the session_name using a defined constant?

For example

session_name(UNIQUE_NAME);

where UNIQUE_NAME is defined in another file

define('UNIQUE_NAME', 'MRKLB');


Did you try?

<yoda>
Do or do not. There is no try
</yoda>

So I guess you did the above and failed?

Jul 17 '05 #2

P: n/a
Why would I not listen to starwars wisdom?

Of course I tried and it didn't work

Jul 17 '05 #3

P: n/a
bi*******@gmail.com wrote:
Why would I not listen to starwars wisdom?

Of course I tried and it didn't work


How comes it works for me then?
http://tmp.tryba.nl/sessname.php(s)

Jul 17 '05 #4

P: n/a
I believe you have to set the session id before any html is output on
the page (following the same rules as cookies).

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.