[PHP] php session ID attached to URL

2004-03-04 Thread matthew oatham
Hi, I have a quick question about PHP session. In my website I have included the command session_start(); at the top of every page. Firstly is this correct? Secondly when I visit the website the first link I click on has the php session ID appended to the url however this php session ID

RE: [PHP] php session ID attached to URL

2004-03-04 Thread Ford, Mike [LSS]
sending any actual content -- if you have, say, a lot of initialization logic, this could actually be quite a long way into your script. Secondly when I visit the website the first link I click on has the php session ID appended to the url however this php session ID is not appended

Re: [PHP] php session ID attached to URL

2004-03-04 Thread Marek Kilimajer
on has the php session ID appended to the url however this php session ID is not appended to subsequent links ! Is this correct behaviour? What is going on? Can anyone explain? When you first visit the site, session_start() sets a cookie that contains the session id. However, since this is your

RE: [PHP] php session ID attached to URL

2004-03-04 Thread Hardik Doshi
click on has the php session ID appended to the url however this php session ID is not appended to subsequent links ! Is this correct behaviour? Yes. It's simply the nature of cookies that it takes at least one round trip to the server to work out if you have them enabled

[PHP] passing session ID

2004-01-22 Thread Diana Castillo
If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks -- -- Diana Castillo Global Reservas,

Re: [PHP] passing session ID

2004-01-22 Thread John Nichel
Diana Castillo wrote: If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks You'll find some

Re: [PHP] passing session ID

2004-01-22 Thread Matt Matijevich
snip If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks /snip You could just have php store

Re: [PHP] passing session ID

2004-01-22 Thread Chris Shiflett
--- Diana Castillo [EMAIL PROTECTED] wrote: If I want to store a session id in a database, how would I do it, like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what?

Re: [PHP] passing session ID

2004-01-22 Thread Chris Shiflett
--- Diana Castillo [EMAIL PROTECTED] wrote: php does it if the user has not disabled cookies and if you remain on the same server, but if you are changing servers and the user has disabled cookies If by changing servers you mean the user visits a different domain, then passing the session

[PHP] Sending session ID without cookie

2004-01-13 Thread Børge Strand
Hi, I'm trying to send my session ID using POST/GET auto-inserted by PHP. This works like a charm in a .php file. But in a .cgi file, a new PHPSSID appears in the Address field of my browser every time I follow the link from the file to itself. What may be causing this? I have had some big

Re: [PHP] Sending session ID without cookie

2004-01-13 Thread Richard Davey
Hello Børge, Tuesday, January 13, 2004, 9:54:27 AM, you wrote: BS I'm trying to send my session ID using POST/GET auto-inserted by PHP. BS This works like a charm in a .php file. But in a .cgi file, a new BS PHPSSID appears in the Address field of my browser every time I follow BS the link from

[PHP] Re: session id

2003-03-25 Thread Michael Heuser
The function session_start is sending a cookie. This means that you can't echo anything before. Its the same rules as with setcookie. Iggy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] can somebody tell me why I am getting this: Warning: session_start() [function.session-start]:

[PHP] RE: session id

2003-03-25 Thread Uttam
session_start(); should be on the first line in the script. regds, -Original Message- From: Iggy [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 20:08 To: [EMAIL PROTECTED] Subject: session id can somebody tell me why I am getting this: Warning: session_start()

Re: [PHP] no session id

2003-02-26 Thread Ernest E Vogelsinger
At 01:39 26.02.2003, php said: [snip] this code doesn't ouput a session-id. is the code right? and if not, any suggestions what's wrong? i'm new into sessions, so forgive me for stupid questions.. thanx michiel ? session_start (); Header(Content-Type:

[PHP] no session id

2003-02-25 Thread php
this code doesn't ouput a session-id. is the code right? and if not, any suggestions what's wrong? i'm new into sessions, so forgive me for stupid questions.. thanx michiel ? session_start (); Header(Content-Type: text/html); echo session id: . $session_id; ? -- PHP General Mailing List

RE: [PHP] no session id

2003-02-25 Thread John W. Holmes
this code doesn't ouput a session-id. is the code right? and if not, any suggestions what's wrong? i'm new into sessions, so forgive me for stupid questions.. thanx michiel ? session_start (); Header(Content-Type: text/html); echo session id: . $session_id; ? Where do you think

Re: [PHP] no session id

2003-02-25 Thread Justin French
on 26/02/03 11:39 AM, php ([EMAIL PROTECTED]) wrote: ? session_start (); // OPTION echo session id: . session_id(); // OR $sid = session_id(); echo $sid; ? Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] no session id

2003-02-25 Thread Bryan Lipscy
] Subject: [PHP] no session id this code doesn't ouput a session-id. is the code right? and if not, any suggestions what's wrong? i'm new into sessions, so forgive me for stupid questions.. thanx michiel ? session_start (); Header(Content-Type: text/html); echo session id: . $session_id

Re: [PHP] Fw: Session ID changes

2003-01-07 Thread Marek Kilimajer
Scott Fletcher wrote: [-^-!-%- [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]. .. Hello all, I need some clarification. To my understanding, each visit to php site creates a UNIQUE Session ID (SID). Only when you call session_start() - this function checks for

[PHP] Fw: Session ID changes

2003-01-06 Thread Scott Fletcher
[-^-!-%- [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]. .. Hello all, I need some clarification. To my understanding, each visit to php site creates a UNIQUE Session ID (SID). And, that ID stays constants until the browser is shutdown, or the session is specifically

[PHP] One Session ID, Multiple Domains

2002-10-04 Thread SpamSucks86
Is it possible to have one session ID and access it from two domains? Here's the situation: I have an online store. I use sessions to track the shopping cart. When I go to checkout and switch to SSL, it's on another domain (but still on the same machine). I need to access the session data

RE: [PHP] One Session ID, Multiple Domains

2002-10-04 Thread John W. Holmes
Here's the situation: I have an online store. I use sessions to track the shopping cart. When I go to checkout and switch to SSL, it's on another domain (but still on the same machine). I need to access the session data from the non-SSL domain for checkout. How can I go about doing this?

Re: [PHP] Removing session id from url when using session_set_save_handler

2002-08-15 Thread Analysis Solutions
On Tue, Aug 13, 2002 at 10:47:13AM +0200, Per wrote: Does anybody know how to get rid of the session id in the url when using session_set_save_handler. Perhaps session.use_trans_sid is the ticket you're looking for... --Dan -- PHP classes that make web design easier

[PHP] Strange session id problem - code is issuing a new one randomly

2002-08-14 Thread Thoenen, Peter Mr. EPS
# START CODE SNIPPET ... COMMENTS BELOW (and yes I am not a db guru by anymeans, might be easier ways to do this) ?php session_start(); $tsid=session_id(); echo $tsig; # debug $date=date(ymdHi); $connect=mysql_pconnect('localhost', 'user', 'pass'); mysql_select_db('db',

RE: [PHP] Strange session id problem - code is issuing a new one randomly

2002-08-14 Thread Dan Harrington
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 7:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Strange session id problem - code is issuing a new one randomly # START CODE SNIPPET ... COMMENTS BELOW (and yes I am not a db guru by anymeans, might be easier ways to do

Re: [PHP] Strange session id problem - code is issuing a new onerandomly

2002-08-14 Thread Chris Shiflett
Dan Harrington wrote: I'm having the same problem from time to time as well. Just straight up out of the blue it gives you a new SESSION id. As a general rule, the reason that you will find yourself with a new session ID is that the old session ID was not properly communicated back to the

[PHP] Removing session id from url when using session_set_save_handler

2002-08-13 Thread Per
Hi Does anybody know how to get rid of the session id in the url when using session_set_save_handler. There is a user note in the online manual saying that you have to set the cookie manual to accomplish this but it doesn't mention how! I've tested some combinations but I can't get it to

[PHP] Changing Session ID

2002-06-27 Thread Riaan Stander
Hi there I've got the following cenario. I got a general user page with a Login button next to each user. This button only opens a new browser window by setting the target in the form tag and submits the username, password, button value, and a newsess flag to the login page in the new browser

[PHP] Changing Session ID

2002-06-26 Thread Riaan Stander
Hi there I've got the following cenario. I got a general user page with a Login button next to each user. This button only opens a new browser window by setting the target in the form tag and submits the username, password, button value, and a newsess flag to the login page in the new browser

[PHP] PHP session ID not unique or session_register problems

2002-03-18 Thread Matej Kovacic
Hi! I am a kind of newbie in PHP programming, but I have found an interesting problem and some php guys I know were unable to help me to solve it. So I am coming here with my question... I have written a little more advanced counter, which should be included in other PHP scripts in website. It

Re: [PHP] PHP session ID not unique or session_register problems

2002-03-18 Thread Oliver Heinisch
At 18.03.2002 14:54, you wrote: Even if I did´nt look closely at your code, I would suggest, that you decrease the amount of data, diferent tables to one table. You set an cookie, therfor you have the same effect as if you use sesssion vars. So it´s easy to set and find the data, via cookie.

[PHP] Re: session ID does not delete itself

2001-10-19 Thread Chris Lee
in php.ini session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 604800 ; after this number of seconds,

[PHP] Re: Session ID

2001-10-05 Thread Rosen
to pass session ID. Can I set standart (i.e. PHPSESSID ) to use to pass session ID ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

[PHP] Re: Session ID

2001-10-04 Thread Richard Lynch
to next page. I want to use some script whitch use SID to pass session ID. Can I set standart (i.e. PHPSESSID ) to use to pass session ID ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL