PHPSESSID how to append and access
am 25.05.2006 13:12:02 von Girish Agarwal
Hi All,
I am using header("Location:
http://dv-medical/phpscripts/test.php") function to hop from one Page to
Another in My Web Application
My Problem is I have been unable to get the exact syntax to append
the Session ID to the URL specified in the header so that it is available
If I am not mistaken then with the header function the Session ID is
not automatically appended eventhough enable_trans_sid is set to true.If I
am wrong then please guide me as to how I can access the session id.
My php.ini file has session.name has PHPSESSID.
Thanks,
Girish
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHPSESSID how to append and access
am 25.05.2006 13:48:03 von J R
------=_Part_46607_18650814.1148557683577
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
On 5/25/06, Girish Agarwal wrote:
>
> Hi All,
> I am using header("Location:
> http://dv-medical/phpscripts/test.php") function to hop from one Page to
> Another in My Web Application
> My Problem is I have been unable to get the exact syntax to appen=
d
> the Session ID to the URL specified in the header so that it is available
you could do this:
header("Location: http://dv-medical/phpscripts/test.php?sid=3D".session_id(=
))
If I am not mistaken then with the header function the Session ID i=
s
> not automatically appended eventhough enable_trans_sid is set to true.If =
I
> am wrong then please guide me as to how I can access the session id.
> My php.ini file has session.name has PHPSESSID.
>
> Thanks,
> Girish
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--=20
GMail Rocks!!!
------=_Part_46607_18650814.1148557683577--
RE: PHPSESSID how to append and access
am 25.05.2006 15:33:36 von M.Ford
On 25 May 2006 12:12, Girish Agarwal wrote:
> Hi All,
> I am using header("Location:
> http://dv-medical/phpscripts/test.php") function to hop from
> one Page to
> Another in My Web Application
> My Problem is I have been unable to get the exact
> syntax to append
> the Session ID to the URL specified in the header so that it
> is available
header("Location: http://dv-medical/phpscripts/test.php?".SID)
That's what the SID constant is for. You can even use it with impunity whe=
n cookies are in use, since it is set to the empty string in that case.
Cheers!
Mike
------------------------------------------------------------ ---------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211=20
To view the terms under which this email is distributed, please go to http:=
//disclaimer.leedsmet.ac.uk/email.htm
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php