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

Transfer session_id()

P: n/a
Ken
Which is the correct means of transferring session_id() attached to the URL
address?

or do all work?

I am getting inconsistence results.

$sessionid = session_id();

<a href="<?PHP echo 'sale.php?sessionid='.$sessionid;?>"

<a href="<?PHP echo 'sale.php?session_id()'; ?>"

<a href="<?PHP echo 'sale.php?$sessionid'; ?>"

Should the following page have:

session_id($sessionid);
session_start();

or
session_id(sessionid);
session_start();

or
session_id();
session_start();

or

session_start();

Thanks for the help. Some of these work on the net but not on my computer
with Apache2.

Ken
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
*** Ken wrote/escribió (Mon, 27 Sep 2004 10:09:43 -0500):
Which is the correct means of transferring session_id() attached to the URL
address?

or do all work?


Check the difference between single and double quotes:

http://es.php.net/manual/en/language.types.string.php
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.