Re: [PHP] Session variables does not get sent

2004-09-06 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an INSERT query. That's not true, since he's using user data in the SQL statement.

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Dre
no I did this a long time ago (I did have this problem before :o) ) Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Like you did not change

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Marek Kilimajer
Dre wrote: no I did this a long time ago (I did have this problem before :o) ) Try echo $_REQUEST[session_name()]; in members/main.php. It should print the session id. Then there should be a session file sess_[session id]. Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Jason Wong
On Monday 06 September 2004 14:08, Peter Brodersen wrote: On Mon, 6 Sep 2004 13:33:02 +0800, in php.general [EMAIL PROTECTED] (Jason Wong) wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're

Re: [PHP] Session again !!!

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 17:32, Dre wrote: I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Does not work -- explain this part. add error_reporting(E_ALL); as the first line of code, in addition to all the other suggestions. Check your

Re: [PHP] Session again !!!

2004-09-05 Thread Afan Pasalic
Try use if(empty($_SESSION['uname']) instead if($_SESSION['uname'] = = ) Afan Dre wrote: Hi .. I'm still working on my members login script. I'm using a simple username/password login form that calls the following login script //= ?php

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try use if(empty($_SESSION['uname']) instead if($_SESSION['uname'] = = ) Afan Dre wrote: Hi .. I'm

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try use if(empty($_SESSION['uname']) instead if($_SESSION['uname'] = = ) Afan Dre wrote: Hi .. I'm

Re: [PHP] Session again !!!

2004-09-05 Thread Andre Dubuc
Hi, In your code: if($_SESSION['uname'] = = ) ^ Get rid of that extra space bewteen the == Hth, Andre On Sunday 05 September 2004 11:23 am, Dre wrote: I really did and it behaves the same I tried isset() also but there is no good it still does not

Re: [PHP] Session again !!!

2004-09-05 Thread raditha dissanayake
Dre wrote: according to what little i know this should give you a parse error. if($_SESSION['uname'] = = ) -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean

Re: [PHP] Session again !!!

2004-09-05 Thread Torsten Roehr
Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try use if(empty($_SESSION['uname'])

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
it does not actually exist in the real code I just added it to show that there are 2 equal signs in there Andre Dubuc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, In your code: if($_SESSION['uname'] = = ) ^ Get rid of that extra space

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
thanks Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED]

Re: [PHP] Session again !!!

2004-09-05 Thread Jason Wong
On Sunday 05 September 2004 22:24, Dre wrote: $_SESSION['uname'] = $username; session_write_close() before you redirect. header('Location: /members/main.php'); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I don't know why but session variables does not get posted .. is there any thing in the php.ini that I should configure as I can't find any thing wrong in the code I'm using !! Session variables are not posted, they are kept on the server. Only the session id is sent as a cookie, get

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: I don't know why but session variables does not

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! That means you are loosing your session. Is the session id sent? Is the session file (usualy in /tmp) created? Marek Kilimajer

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! Are you starting the session on every page? How are you sending the session id? -- By-Tor.com It's all about the Rush

Re: [PHP] Session again !!!

2004-09-05 Thread Chris Shiflett
--- Dre [EMAIL PROTECTED] wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); I recommend using mysql_escape_string() or mysql_real_escape_string() instead of addslashes(). if((empty($_POST['user_name'])) || (empty($_POST['password']))) {

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
this is the username/password validation script which receives the user name and password from a regular form and they are sent correctly logme_in.php //== == ?php session_start(); $username =

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: snip if((empty($_POST['user_name'])) || (empty($_POST['password']))) { header('Location: index.php'); include(login_form); exit(); } That include is useless, as you're forwarding to another document right before it. else{ include(db.php); $sql = SELECT * FROM

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
yes I'm sure John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: snip if((empty($_POST['user_name'])) || (empty($_POST['password']))) { header('Location: index.php'); include(login_form); exit(); } That include is useless, as you're

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: yes I'm sure Won't hurt to echo it out. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Jason Wong
Please do not top post. On Monday 06 September 2004 06:53, Dre wrote: As well as what everybody else has said ... $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an

Re: [PHP] Session understanding

2004-09-02 Thread John Holmes
From: Michael Gale [EMAIL PROTECTED] I have a small issue with sessions, at the moment I am using sessions on our web site and storing the session information in a db_table. It is working great. Right now I am only storing the users ID, name and role in the session data, but I would like to

Re: [PHP] Session understanding

2004-09-02 Thread Michael Gale
Hello, The site is for a ticket tracking system, if a CSR has a window open and is working on company A - I would like to save some information about company A in a session variable. Since the session is stored in the DB I figured it was save. Then if the CSR need to look up another

RE: [PHP] Session understanding

2004-09-02 Thread Dan Joseph
I have a small issue with sessions, at the moment I am using sessions on our web site and storing the session information in a db_table. It is working great. Right now I am only storing the users ID, name and role in the session data, but I would like to store other information as well.

Re: [PHP] Session understanding

2004-09-02 Thread John Holmes
From: Michael Gale [EMAIL PROTECTED] The site is for a ticket tracking system, if a CSR has a window open and is working on company A - I would like to save some information about company A in a session variable. Since the session is stored in the DB I figured it was save. Then if the CSR need

Re: [PHP] Session understanding

2004-09-02 Thread raditha dissanayake
Michael Gale wrote: Hello, Morning .. at least it is where I am :) good evening. Close to 10:00pm in tropical paradise (Sri Lanka in case you don't know where that is ) I have a small issue with sessions, at the moment I am using sessions on our web site and storing the session information

Re: [PHP] Session understanding

2004-09-02 Thread raditha dissanayake
Michael Gale wrote: Hello, The site is for a ticket tracking system, if a CSR has a window open and is working on company A - I would like to save some information about company A in a session variable. Since the session is stored in the DB I figured it was save. Then if the CSR need to

RE: [PHP] Session understanding

2004-09-02 Thread Ed Lazor
-Original Message- ... Is there a better way to do this ... I was hoping to not have to pass variables between each page by including them in the URL. How come? It sounds like you're going to end up adding a lot of complexity to the app if you're just trying to hide a specific

Re: [PHP] Session understanding

2004-09-02 Thread James E Hicks III
On Thursday 02 September 2004 10:09 am, Michael Gale wrote: So if I try and store a variable that would be unique to each window it would get over written. Is this a configuration problem ? It sounds to me like you need to turn off session.auto_start in your php.ini file and call

Re: [PHP] session cookie paths

2004-08-25 Thread Ian Firla
Answered my own question. Creating an .htaccess file containing: php_value session.name uniqueSESSIONname takes care of the problem. On Wed, 2004-08-25 at 12:30, Ian Firla wrote: Dear All, I've been trying to figure out a solution for this problem and have googled the subject but cannot

Re: [PHP] session cookie paths

2004-08-25 Thread John Holmes
From: Ian Firla [EMAIL PROTECTED] Answered my own question. Creating an .htaccess file containing: php_value session.name uniqueSESSIONname takes care of the problem. You could also use -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session cookie paths

2004-08-25 Thread John Holmes
From: Ian Firla [EMAIL PROTECTED] Answered my own question. Creating an .htaccess file containing: php_value session.name uniqueSESSIONname takes care of the problem. You can do this from within PHP by calling session_name() before session_start, also. You could also use set_cookie_params() in

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo(\n Session ResetBR); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called $_SESSION[''start_time'} nor, for that matter, have you 'saved' it

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo(\n Session ResetBR); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
On Friday 13 August 2004 11:19 am, you wrote: On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, [snip] .for thatt matter, have you 'saved' it using session_write_close(); From the Manual: Session data is usually stored after your script terminated without the need to call

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Torsten Roehr
Hi Andre, hi James, please see below Andre Dubuc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Friday 13 August 2004 11:19 am, you wrote: On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, [snip] .for thatt matter, have you 'saved' it using

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 01:14 pm, Torsten Roehr wrote: James, have you tried with manually calling session_start() and setting auto_start = 0? If not, please try this. Haven't followed your previous thread so please forgive me if I'm asking something you already wrote. Are you using cookies?

Re: [PHP] Session problems under heavy load???

2004-08-07 Thread Torsten Roehr
Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I ran into this last month. It was a problem with the ISP's server. They were load balancing between different machines and PHP / Apache was having trouble accessing session files. Storing the session data in a database might

RE: [PHP] Session problems under heavy load???

2004-08-06 Thread Ed Lazor
I ran into this last month. It was a problem with the ISP's server. They were load balancing between different machines and PHP / Apache was having trouble accessing session files. -Original Message- From: BOOT [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 1:26 PM To:

Re: [PHP] Session Expiration Timeout

2004-07-28 Thread Matt M.
I've been looking for about changing somewhere the session exiration time, but only found about the session cookie expiration. - Wich is the default timeout for a session? And, is some way to know the expiration time for a session? Take a look at the ini variables.

Re: [PHP] Session Expiration Timeout

2004-07-28 Thread Jason Davidson
I beleive there is some session timeout setting in php.ini .. search for session or expire or timeout in that file. Jason On Wed, 28 Jul 2004 20:18:21 +0200, Jordi Canals [EMAIL PROTECTED] wrote: Hi all, I'm dealing with sessions in a project. Here people are editing some documents

Re: [PHP] Session Expiration Timeout

2004-07-28 Thread Jordi Canals
Matt M. wrote: - Wich is the default timeout for a session? And, is some way to know the expiration time for a session? Take a look at the ini variables. http://us2.php.net/session session.gc_maxlifetime Thanks Matt. for your quick and clear answer. I've readed about it, and seen the default is 24

Re: [PHP] session and mysql connection identifier

2004-07-21 Thread Jason Wong
On Wednesday 21 July 2004 13:47, mukta telang wrote: I want to use mysql persistent connection to connect to mysql and use the connection identifier or handle in subsequent pages/scripts. So in script1.php I have session_start(); session_register('conn');

Re: [PHP] session and mysql connection identifier

2004-07-21 Thread Justin Patrin
On Tue, 20 Jul 2004 22:47:43 -0700 (PDT), mukta telang [EMAIL PROTECTED] wrote: Hi, I want to use mysql persistent connection to connect to mysql and use the connection identifier or handle in subsequent pages/scripts. So in script1.php I have session_start(); session_register('conn');

Re: [PHP] session and mysql connection identifier

2004-07-21 Thread Dennis Gearon
What he is really looking for is connection pooling. Do a google and see if you can find 'mysql connection pooling php'. It is persistent connections across page accesses, which PHP does not do natively AFAIK. Jason Wong [EMAIL PROTECTED] wrote:

RE: [PHP] session and mysql connection identifier

2004-07-20 Thread Umesh Deshmukh
Hi, Please check if you have put session_start() on script2. Umesh. -Original Message- From: mukta telang [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 11:18 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] session and mysql connection identifier Hi, I want to

Re: [PHP] Session Variables ~ Best Practices

2004-07-14 Thread Harlequin
thanks Jay. -- - Michael Mason Arras People www.arraspeople.co.uk - Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I am also wondering if I need to declare all my variables one after the other or can I

RE: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Jay Blanchard
[snip] I am also wondering if I need to declare all my variables one after the other or can I simply declare variables that I will be using immediately upon submission. [/snip] Since PHP is not strongly typed (like C or C++) you need not declare any variables. There are some caveats (see

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Michal Migurski
I presume I am right in assuming that I can declare variables anywhere I like providing I have started a session on the page but I cannot actually use those variables until a post or some similar action has been performed by the user. No, you can use them right away - they are stored

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Justin Patrin
On Tue, 13 Jul 2004 17:52:44 +0100, Harlequin [EMAIL PROTECTED] wrote: I'm right in the middle of developing some pages that will require session cookies. Now I have a few questions and hope I don't bore you too much... I presume I am right in assuming that I can declare variables anywhere I

Re: [PHP] session, explain?

2004-07-06 Thread Curt Zirzow
* Thus wrote Louie Miranda: session_start(); setcookie(cartId, session_id(), time() + ((3600 * 24) * 30)); return session_id(); Can someone help me figure out what does the session of this code means? Looking at the description of setcookie: bool setcookie ( string name [, string value [,

Re: [PHP] session, explain?

2004-07-06 Thread Ligaya Turmelle
Louie Miranda wrote: session_start(); http://www.php.net/manual/en/function.session-start.php setcookie(cartId, session_id(), time() + ((3600 * 24) * 30)); http://www.php.net/manual/en/function.setcookie.php return session_id(); http://www.php.net/manual/en/function.session-id.php Can someone

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread Tom Rogers
Hi, Monday, July 5, 2004, 1:27:12 PM, you wrote: MG Hello, MG I am working on a web site that is available only over HTTPS and am MG using session tracking. MG So far I am only saving the person's display name (different then MG login), site role and e-mail address in the $_SESSION data.

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread John W. Holmes
Michael Gale wrote: Now at the moment on each page is a hidden variable containing a db primary key for which the data is getting updated. I know that hidden values are not a good idea since the user can change them ... so I was going to store the hidden value in a $_SESSION variable but then the

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread John W. Holmes
Tom Rogers wrote: store it in the session like: $_SESSION[session_id()]['dbkey'] = $dbkey; then get it back with $dbkey = (isset($_SESSION[session_id()]['dbkey']))? $_SESSION[session_id()]['dbkey'] : 0; That doesn't negate the problem of people having more than one window open and editing records

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread Michael Gale
Hello, Thanks for the replies ... I valid all the data and input from the user. So if the user changes the value nothing bad will happen: I have in the code: if ($var != $hiddenvar) { e-mail blank saying Blank has been updated } That is it ... I made a mistake in my last e-mail ..

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]

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

Re: [PHP] Session file in /tmp

2004-06-29 Thread Binay
If i m getting ur problem correctly then u want to restrict the same user logging from different machines concurrently. If tht being the case the snippet u mentioned below alone won't solve the problem . you have maintain a flag in the database which will be on when the user logs in and off when

Re: [PHP] Session file in /tmp

2004-06-29 Thread Red Wingate
i guess what u are looking for is session_destroy(); Binay wrote: If i m getting ur problem correctly then u want to restrict the same user logging from different machines concurrently. If tht being the case the snippet u mentioned below alone won't solve the problem . you have maintain a

Re: [PHP] Session file in /tmp

2004-06-29 Thread Tim Best
2 Problems: 1. User A's information will come up when user B logs in instead of user B's information coming up when user B logs in... User A's information seems to be cached in /tmp/sess_8ce0348cbf6704f96c2d8094e876ac3b. Any ideas how to keep this from happening? 2. When a user exits Internet

Re: [PHP] Session Garbage Collection (session.gc_maxlifetime)

2004-06-09 Thread coopster
Thanks for the affirmation, Marek. That leaves two of us on the same page :-) Now, where can we find absolute resolution that this is indeed the internal workings? Not that I don't trust my judgement, your judgement, or our extensive testing, but have you ever come across any definitive

Re: [PHP] Session Garbage Collection (session.gc_maxlifetime)

2004-06-06 Thread Marek Kilimajer
coopster wrote: Do I need to change the session.save_path directive for each virtual host to use their own directory other than the system and/or PHP default (/tmp) in order to effectively override each virtual host session.gc_maxlifetime directive? Yes. But I did not read bellow ;-) Let me

Re: [PHP] session variables

2004-06-01 Thread John Nichel
Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Did you start the session before you set $_SESSION['new_name']? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General

Re: [PHP] session variables

2004-06-01 Thread John W. Holmes
Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Yes, it is. Providing you have sessions configured correctly and use session_start(). -- ---John Holmes... Amazon Wishlist:

Re: [PHP] session variables

2004-06-01 Thread Bob Lockie
On 06/01/04 22:12 John Nichel spoke: Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Did you start the session before you set $_SESSION['new_name']? That was my problem. I reorganized and

Re: [PHP] Session name length

2004-05-25 Thread Curt Zirzow
* Thus wrote Miguel J. Jimnez ([EMAIL PROTECTED]): How much long can be the session name? What is the limit? 10, 40, 255 alphanumeric chars? or what? Thanks... You're limit will most likey be the cookie length (if you're using cookies). That would be about: 4KB - ~82 Bytes Curt -- I

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Daniel Clark
Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION What's up with that??? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Brian Dunning
This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Session variables not recognized?

2004-05-25 Thread John Nichel
Brian Dunning wrote: This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian Post some code. -- John C. Nichel

Re: [PHP] Session variables not working

2004-05-15 Thread Andrew Wood
If a page accesses the session variables does it need to explicity reset them as well because it would appear that an intermediate PHP script which also reads the 2 variables is destroying the session for no apparent reason On 14 May 2004, at 22:11, Brad Pauly wrote: On Fri, 2004-05-14 at

Re: [PHP] Session variables not working

2004-05-14 Thread John W. Holmes
- Original Message - From: Andrew Wood [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 14, 2004 4:48 PM Subject: [PHP] Session variables not working I'm trying to set the following two vars on one page then read their values on another like this: [snip] But on page2.php

Re: [PHP] Session variables not working

2004-05-14 Thread Andrew Wood
Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there be? AW On 14 May 2004, at 21:59, John W. Holmes wrote: - Original Message - From: Andrew Wood [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Session variables not working

2004-05-14 Thread John W. Holmes
From: Andrew Wood [EMAIL PROTECTED] Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there be? No, not normally. How are you getting from page 1 to page 2? page1.php... ob_start();

Re: [PHP] Session variables not working

2004-05-14 Thread Brad Pauly
On Fri, 2004-05-14 at 14:48, Andrew Wood wrote: I'm trying to set the following two vars on one page then read their values on another like this: page1.php... ob_start(); session_start(); $_SESSION['member_id'] = $member_id; $_SESSION['password'] = $password; ob_end_flush();

Re: [PHP] Session variables not working

2004-05-14 Thread Andrew Wood
Either typing the URL directly or by using a hyperlink. On 14 May 2004, at 22:09, John W. Holmes wrote: From: Andrew Wood [EMAIL PROTECTED] Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there

Re: [PHP] session names

2004-05-11 Thread Daniel Clark
You need to name your session variables, but no name for session_start(). It is necessary to always name your sessions?or is session_start() sufficient? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session names

2004-05-11 Thread John W. Holmes
From: Edward Peloke [EMAIL PROTECTED] It is necessary to always name your sessions?or is session_start() sufficient? No. Yes. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    2   3   4   5   6   7   8   9   10   11   >