[PHP] session id

2008-02-25 Thread Łukasz Wojciechowski
Hi, I'm using SWFUpload JavaScript for my upload in my logged part of website. I'm passing session_id in every post request from flash object. In my script I set forwarded id with session_id($_POST['passed_id']) but I got logout on that request (it's redirecting me to login page) and I'm also

Re: [PHP] session id

2008-02-25 Thread Daniel Brown
On Mon, Feb 25, 2008 at 5:51 PM, Łukasz Wojciechowski [EMAIL PROTECTED] wrote: Hi, I'm using SWFUpload JavaScript for my upload in my logged part of website. I'm passing session_id in every post request from flash object. In my script I set forwarded id with session_id($_POST['passed_id'])

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Chris Shiflett
Patrick Aljord wrote: I'm moving my page from php4 to php5 and I get this error: Warning: Unknown: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 Can you check to see what session identifier the browser is sending when you get this

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Patrick Aljord
On 10/27/06, Chris Shiflett [EMAIL PROTECTED] wrote: Patrick Aljord wrote: I'm moving my page from php4 to php5 and I get this error: Warning: Unknown: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 Can you check to see what

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Dave Goodchild
Also, why are you assigning the result of session_id() into a variable that is then passed into $_SESSION. Seems overcomplex and redundant - why not just call session_id() when you need it? Just a thought.

Re: [PHP] session id contains illegal characters

2006-10-27 Thread Richard Lynch
On Thu, October 26, 2006 6:19 pm, Patrick Aljord wrote: $_SESSION['user_id']=$user_id; $_SESSION['user_login']=$user_login; $_SESSION['user_pass']=$user_pass; $_SESSION['user_level']=$user_level; $_SESSION['session_bool']=true; $sessionid = session_id(); echo The

[PHP] session id contains illegal characters

2006-10-26 Thread Patrick Aljord
hey all, I'm moving my page from php4 to php5 and I get this error: Warning: Unknown: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0 this is the code I use to start my session: $_SESSION['user_id']=$user_id;

Re: [PHP] Page validation: Un-wanted PHP session ID added to links????

2006-02-21 Thread Richard Lynch
On Mon, February 20, 2006 2:19 pm, Michael Hulse wrote: On Feb 20, 2006, at 12:10 PM, John Nichel wrote: It's all in the manual Hi, thanks for pointing that out. I guess I should have RTFM first, then ask q's second... noob mistake, wont happen again. :D I guess I just do not understand

[PHP] Page validation: Un-wanted PHP session ID added to links????

2006-02-20 Thread Michael Hulse
Hi, I just finished a website for client - I just uploaded the site to their server space - when I went to go validate my pages using the W3C XHTML validator I get several errors due to an un-encoded ampersand in the link URL... For some reason, a session ID is getting added to the end of

Re: [PHP] Page validation: Un-wanted PHP session ID added to links????

2006-02-20 Thread John Nichel
Michael Hulse wrote: Hi, I just finished a website for client - I just uploaded the site to their server space - when I went to go validate my pages using the W3C XHTML validator I get several errors due to an un-encoded ampersand in the link URL... For some reason, a session ID is getting

[PHP] Re: Page validation: Un-wanted PHP session ID added to links????

2006-02-20 Thread David Dorward
Michael Hulse wrote: I just finished a website for client - I just uploaded the site to their server space - when I went to go validate my pages using the W3C XHTML validator I get several errors due to an un-encoded ampersand in the link URL... For some reason, a session ID is getting added

Re: [PHP] Page validation: Un-wanted PHP session ID added to links????

2006-02-20 Thread Michael Hulse
On Feb 20, 2006, at 12:10 PM, John Nichel wrote: It's all in the manual Hi, thanks for pointing that out. I guess I should have RTFM first, then ask q's second... noob mistake, wont happen again. :D I guess I just do not understand why a session is even being created, I never started

Re: [PHP] Re: Page validation: Un-wanted PHP session ID added to links????

2006-02-20 Thread Michael Hulse
On Feb 20, 2006, at 12:11 PM, David Dorward wrote: http://www.w3.org/QA/2005/04/php-session details how to fix the problem (without breaking the session tracking for users without cookies supported and enabled). Ah, great link. Thanks! :) I don't know why sessions are being stored in the

Re: [PHP] Page validation: Un-wanted PHP session ID added to links????

2006-02-20 Thread John Nichel
Michael Hulse wrote: On Feb 20, 2006, at 12:10 PM, John Nichel wrote: It's all in the manual Hi, thanks for pointing that out. I guess I should have RTFM first, then ask q's second... noob mistake, wont happen again. :D I guess I just do not understand why a session is even being

[PHP] Re: [SOLVED] [PHP] Page validation: Un-wanted PHP session ID added to links????

2006-02-20 Thread Michael Hulse
This did the trick: ?php ini_set('arg_separator.output','amp;'); ? On Feb 20, 2006, at 12:37 PM, John Nichel wrote: The server you're running the script on may have session.auto_start enabled Ah, got it. :) Thanks all! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Session ID in query string

2005-01-04 Thread Sandy Keathley
Using PHP 4.3.9, we have these settings: session.use_cookies = 1 session.use_only_cookies = 1 session.use_trans_sid = 0 (verified by a display of phpinfo() ) with the goal of preventing URLs with session IDs appended. That works fine, but when a page is validated by W3C, it throws an error,

Re: [PHP] Session ID in query string

2005-01-04 Thread Richard Lynch
Sandy Keathley wrote: Using PHP 4.3.9, we have these settings: session.use_cookies = 1 session.use_only_cookies = 1 session.use_trans_sid = 0 (verified by a display of phpinfo() ) with the goal of preventing URLs with session IDs appended. That works fine, but when a page is validated

Re: [PHP] Session ID in query string

2005-01-04 Thread M. Sokolewicz
Richard Lynch wrote: Sandy Keathley wrote: Using PHP 4.3.9, we have these settings: session.use_cookies = 1 session.use_only_cookies = 1 session.use_trans_sid = 0 (verified by a display of phpinfo() ) with the goal of preventing URLs with session IDs appended. That works fine, but when a page is

Re: [PHP] session id changing all the time on some pc's

2004-07-03 Thread Torsten Roehr
Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 22:45:23 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only thing i want to know is

Re: [PHP] session id changing all the time on some pc's

2004-07-03 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] No, this is exactly what I wanted to know. But it would contradict everything I experienced with sessions until now - and it does. I just tested your code (with session_start() also at the top of page2). It does not

Re: [PHP] session id changing all the time on some pc's

2004-07-03 Thread Torsten Roehr
Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 22:45:23 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED]

[PHP] session id changing all the time on some pc's

2004-07-02 Thread Zilvinas Saltys
Hello, I have a strange problem. For example i have a script: ?php session_start(); echo session_id(); ? Once it started a session the session_id should never change. It works on my localhost with default php configuration. I'm using mozilla firefox and IE. I put this script on some other

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Gerard Samuel
On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I tried to change IE settings to accept all cookies but nothing changed. Maybe someone knows where's the problem.. I dont know of all the specifics of your

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Zilvinas Saltys
On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I tried to change IE settings to accept all cookies but nothing changed. Maybe someone

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I tried to

RE: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Michael Sims
Zilvinas Saltys wrote: The problem is as i understand IE is not accepting the cookie. So the session id allways regenerates. Everything works fine with mozilla. [...] The only thing i want to know is all the truth about IE (6?) and cookies :) Could it be a problem with IE6 and P3P

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I looked at server configurations but i couldn't find anything usefull. I

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 12:21:34 -0400 Gerard Samuel [EMAIL PROTECTED] wrote: On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote: I

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the user. Could you describe the last paragraph a bit more in detail? Thanks in advance! Torsten What if you used this? session_start();

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Gerard Samuel
On Friday 02 July 2004 02:13 pm, Torsten Roehr wrote: Passing the session id via GET/POST may be ugly but makes you independent of the browser's cookie settings. I would have to agree... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the user. Could you describe the last paragraph a bit more in detail? Thanks

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the user. Could you describe the last paragraph a bit more in detail?

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
The $_SESSION['sid'] will follow from page to page. As long as the user stays in the current session, all $_SESSION variables will follow from page to page as long as session_start() is used. OK, but HOW do you manage that the user stays in the current session. Usually this is made sure by

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Gerard Samuel
On Friday 02 July 2004 04:38 pm, Matthew Sims wrote: As long as the user keeps his browser pointing at your site, then they'll stay in the currect session. The moment they shut down the web browser, the session is lost. The logic doesnt compute with me. I guess I'll have to try this

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The $_SESSION['sid'] will follow from page to page. As long as the user stays in the current session, all $_SESSION variables will follow from page to page as long as session_start() is used. OK, but HOW do you manage

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Matthew Sims
No, this is exactly what I wanted to know. But it would contradict everything I experienced with sessions until now - and it does. I just tested your code (with session_start() also at the top of page2). It does not work because there is absolutely no relation between page1 and page2 with

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Curt Zirzow
* Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only thing i want to know is all the truth about IE (6?) and cookies :) Heeelp :) Sorry to say that but just DO NOT use cookies. You will always have problems with users having

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Zilvinas Saltys
On Fri, 2 Jul 2004 22:45:23 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only thing i want to know is all the truth about IE (6?) and cookies :) Heeelp :) Sorry to say

[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] Session Id in forms

2003-09-10 Thread Gustavo Del Castillo Meza
Hi, been having some problems with sessions. When i use a session and a form on the same page. Sometimes php will create a form object called PHP_SESSIONID. Since this is inserted as the first object of the form, this will screw up my javascript validation, wich uses the form element index, i dont

Re: [PHP] Session Id in forms

2003-09-10 Thread Justin French
This is done by PHP's enable-trans-sid directive. The simple solution would be to disable trand-sid in the php.ini file, but you may rely on it to maintain sessions on non-cookie users. So, then there is this directive in php.ini: ; The URL rewriter will look for URLs in a defined set of HTML

[PHP] Session ID as a regex

2003-08-07 Thread Gerard Samuel
How would you best describe a session id as a regex? [a-z0-9]{32} Just checking to see if any other characters can be in a session id. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session ID as a regex

2003-08-05 Thread Jason Wong
On Wednesday 06 August 2003 02:28, Gerard Samuel wrote: How would you best describe a session id as a regex? [a-z0-9]{32} Just checking to see if any other characters can be in a session id. I think [a-f0-9]{32} is sufficient. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

[PHP] session id

2003-03-25 Thread Iggy
can somebody tell me why I am getting this: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on line 21 Warning: session_start() [function.session-start]:

Re: [PHP] session id

2003-03-25 Thread Ryan Gibson
On 25/3/03 2:37 pm, Iggy [EMAIL PROTECTED] wrote: can somebody tell me why I am getting this: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on line 21

Re: [PHP] session id

2003-03-25 Thread CPT John W. Holmes
can somebody tell me why I am getting this: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on line 21 Warning: session_start()

[PHP] session id generation

2003-03-12 Thread Mathieu Dumoulin
Hi, i'd like to know how PHP determines what session_id to hand out to users. Is it based on some real value like the browser and the ip address? an incremental number? I want to make sure that it doesnt provide two same session id for the different users at the same time. thanks MAthieu

Re: [PHP] session id generation

2003-03-12 Thread Ernest E Vogelsinger
At 19:50 12.03.2003, Mathieu Dumoulin spoke out and said: [snip] Hi, i'd like to know how PHP determines what session_id to hand out to users. Is it based on some real value like the browser and the ip address? an incremental number? I want to make sure

[PHP] session id

2003-02-06 Thread Edward Peloke
Ok, I am sure this has been discussed but I have not been keeping up with the listserv. I am using sessions so to test, I blocked all cookies and of course the sessionid is then in the url. How can I hide it from the url?...or is this even possible? Thanks, Eddie -- PHP General Mailing List

RE: [PHP] session id

2003-02-06 Thread Rich Gray
-Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: 06 February 2003 13:56 To: Php-General@Lists. Php. Net Subject: [PHP] session id Ok, I am sure this has been discussed but I have not been keeping up with the listserv. I am using sessions so to test, I

[PHP] Session ID changes

2003-01-06 Thread [-^-!-%-
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 destroyed. Is this correct? If not, then please advise. I'm trying to develop a

[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] session ID does not delete itself

2001-10-19 Thread Peter
Hi, I have been experimenting with PHP4 using sessions and one of my books says that session ID's are created in the /tmp directory so I take a look in there and I find are about 10 sessions that have not been deleted dated earliest to about being week old ie.

[PHP] Session ID

2001-10-04 Thread Rosen
Hi, I'm creating web site with sessions. Normally the site uses PHPSESSID to pass session ID 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

[PHP] Session-id in url, not in cookies

2001-09-27 Thread Martin Thoma
Hello! How can I make the session-id ONLY be stored in the url, even if the user has cookies enabled? I have no access to the php.ini-file. Any ideas? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL