473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Transfer session_id()

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
1 2010
*** 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Annie | last post by:
I have a script to check if a session exists, if not then I log the user's info from $_Server variables into a database (ip address, time, etc.). The problem is that the test: ...
2
by: jaf893 | last post by:
When I run this: <?PHP session_start(); echo session_id(); ?> It give me the right ouput but it also gives me a huge error message: Warning: session_start():
4
by: jaf893 | last post by:
I have the following script: <?PHP session_start(); echo session_id(); ?> But it gives a different session_ID() everytime the page is reloaded. Is there any way to keep the same...
9
by: Mark | last post by:
Hello I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop) The problem is that the...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
3
by: CjB | last post by:
Hello, I am trying to do the following in one of my pages. session_id($_GET); session_start(); I am running php5, however as soon as I call session_start the script hangs and nothing happens....
2
Atli
by: Atli | last post by:
Hi. I've been using php 5.1.x for a while now and have a whole bunch of php code wirtten that works fine using that. I just updated to 5.2 and now none of the sessions I use work. I've found...
1
by: SinekSekiz | last post by:
Hi All I have looked all over the internet for this. What I basically want to do is implementing following link to the flash getURL(); function. <a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.