[PHP] Sessions Help

2002-03-03 Thread Ramesh Nagendra Pillai
Hai I am very new to PHP develope Can any one please help me to use session variables. I am able to register an variable. My probelm is how to get the values of that registered variable in the successive pages? Thanx __ Do You Yahoo!? Yahoo!

[PHP] sessions help

2002-06-13 Thread Leston Drake
Hi again. Thanks to Miguel and Matt for pointing me to sessions for retaining variables. I've got the register_globals directive set to Off. I want to store a value in a session variable. I've set up two documents (one that sets a session variable, and one that retrieves it), with the followin

[PHP] Sessions [Help]

2002-06-29 Thread Dan Tappin
This is a follow-up to another thread - [PHP] session.use_trans_sid I am setting up a login section of my site using sessions. I have the login working with and without cookies enabled. I do not want to restrict my users be requiring cookies. Here is my /login/login.php file which takes the re

Re: [PHP] Sessions Help

2002-03-03 Thread Greg Donald
On Sun, 3 Mar 2002, Ramesh Nagendra Pillai wrote: >I am very new to PHP develope Can any one please help >me to use session variables. >I am able to register an variable. >My probelm is how to get the values of that registered >variable in the successive pages? You probably need to pass the sess

Re: [PHP] Sessions Help

2002-03-03 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ramesh Nagendra Pillai declared > I am very new to PHP develope Can any one please help > me to use session variables. > I am able to register an variable. > My probelm is how to get the values of that registered > variable in the suc

Re: [PHP] sessions help

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 9:46:10 PM, you wrote: > First, I load Doc 1 (to set the session variable). > Then I load Doc 2 to retrieve the variable. When doc 2 runs, I get the > following: > >-

Re: [PHP] sessions help

2002-06-13 Thread Leston Drake
I just tried adding session_start() to the beginning of both files. When I load Doc 1, I get this warning twice(!): Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\wan\sessions.php:7) in c:\program files\apache gr

[PHP] Sessions help please

2001-03-21 Thread KPortsmout
Hi, I am going to use sessions to authenticate and protect my pages, this is what I have so far... User logs in via form, this is checked via a SQL call, if the correct username and password are entered I run the following: session_start(); session_register("UserName","Password"); hea

Re[2]: [PHP] sessions help

2002-06-13 Thread Julie Meloni
LD> I just tried adding session_start() to the beginning of both files. When I LD> load Doc 1, I get this warning twice(!): LD> Warning: Cannot send session cache limiter - headers already sent (output LD> started at c:\program files\apache group\apache\htdocs\wan\sessions.php:7) LD> in c:\pro

Re[2]: [PHP] sessions help

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 10:04:05 PM, you wrote: > I just tried adding session_start() to the beginning of both files. When I > load Doc 1, I get this warning twice(!): > Warning: Cannot send session cache limiter - headers already sent (output > started at c:\program files\apache group\a

Re[2]: [PHP] sessions help

2002-06-13 Thread Leston Drake
It's the 1st line after LD> I just tried adding session_start() to the beginning of both files. >When I >LD> load Doc 1, I get this warning twice(!): > >LD> Warning: Cannot send session cache limiter - headers already sent (output >LD> started at c:\program files\apache >group\apache\htdocs\wan\

Re[3]: [PHP] sessions help

2002-06-13 Thread Julie Meloni
LD> It's the 1st line after At 03:09 PM 6/13/2002, you wrote: >>LD> I just tried adding session_start() to the beginning of both files. >>When I >>LD> load Doc 1, I get this warning twice(!): >> >>LD> Warning: Cannot send session cache limiter - headers already sent (output >>LD> started at c:\p

Re[2]: [PHP] sessions help

2002-06-13 Thread Leston Drake
Thanks to Julie and Stuart for helping me. With your direction, I got rid of the warning about the headers by putting the session_start() at the beginning of the file. Now I get a different sort of error when I try to retrive the session variable: --- Warning: Undefi

Re[2]: [PHP] sessions help

2002-06-13 Thread Leston Drake
At 03:32 PM 6/13/2002, you wrote: >Thanks to Julie and Stuart for helping me. > >With your direction, I got rid of the warning about the headers by putting >the session_start() at the beginning of the file. > >Now I get a different sort of error when I try to retrive the session >variable: >

Re[3]: [PHP] sessions help

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 10:32:25 PM, you wrote: > Thanks to Julie and Stuart for helping me. > With your direction, I got rid of the warning about the headers by putting > the session_start() at the beginning of the file. > Now I get a different sort of error when I try to retrive the se

Re[3]: [PHP] sessions help

2002-06-13 Thread Leston Drake
I've stripped the code down to barest bones to try to figure this out: [getglobal.php] ... echo "Node is {$_SESSION['node']}."; ... [session.php] ... $_SESSION['node'] = "10.2"; ... Other than the standard html, head, title, body tags and the session_start(), there is no other code. I'm still g

Re[4]: [PHP] sessions help

2002-06-13 Thread Stuart Dallas
On Thursday, June 13, 2002 at 11:07:16 PM, you wrote: > I've stripped the code down to barest bones to try to figure this out: > [getglobal.php] > ... > echo "Node is {$_SESSION['node']}."; > ... > [session.php] > ... > $_SESSION['node'] = "10.2"; > ... > Other than the standard html, head, tit

Re: [PHP] Sessions help please

2001-03-21 Thread Hardy Merrill
[EMAIL PROTECTED] [[EMAIL PROTECTED]] wrote: > Hi, > > I am going to use sessions to authenticate and protect my pages, this is what > I have so far... > > User logs in via form, this is checked via a SQL call, if the correct > username and password are entered I run the following: > > sessio

RE: [PHP] Sessions help please

2001-03-21 Thread Jeff Armstrong
Apologies for the long post. I use this approach: (simplified) at the top of every page, before any HTML. Pop it into an include right at the top. I have not included all the util function e.g. LogQuietAlert() regards Jeff "); gotoPage("/login"); } } #===

Re: Re[2]: [PHP] sessions help

2002-06-13 Thread Kevin Stone
y. Just fill the index and you're all set. -Kevin - Original Message - From: "Leston Drake" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 13, 2002 3:32 PM Subject: Re[2]: [PHP] sessions help > Thanks to Julie and Stuart for helping me. &g

Re: Re[3]: [PHP] sessions help

2002-06-13 Thread Kevin Stone
Hmm. Okay. Replace $_SESSION with $HTTP_SESSION_VARS and see if that works. -Kevin - Original Message - From: "Leston Drake" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 13, 2002 4:07 PM Subject: Re[3]: [PHP] sessions help > I've st

Re: Re[3]: [PHP] sessions help

2002-06-13 Thread Leston Drake
AIL PROTECTED]> >Sent: Thursday, June 13, 2002 4:07 PM >Subject: Re[3]: [PHP] sessions help > > > > I've stripped the code down to barest bones to try to figure this out: > > [getglobal.php] > > ... > > echo "Node is {$_SESSION['node']}.&quo

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Lazor, Ed
Have you tried this on a separate web page to make sure it's not something server specific? Here's a script that worked from my computer with register_globals set to on and off (restarted server between tests for confirmation). If this works from your computer, could you resend the code on your

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Leston Drake
At 04:35 PM 6/13/2002, you wrote: >Have you tried this on a separate web page to make sure it's not something >server specific? No, but that's a good idea. I will try it. >Here's a script that worked from my computer with register_globals set to on >and off (restarted server between tests for c

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Leston Drake
Hey, it worked on another server! I've been working on my local machine's server (localhost), but when I run it from a different web server, it worked fine. Any ideas about which setting(s) may be causing the problem? From my php.ini file: session.save_handler=files session.save_path= C:\PHP\

RE: Re[4]: [PHP] sessions help

2002-06-13 Thread Lazor, Ed
> Hey, it worked on another server! > I've been working on my local machine's server (localhost), > but when I run it from a different web server, it worked fine. > > Any ideas about which setting(s) may be causing the problem? Nope, but I'm including a copy of my local php.ini for ya to compar

Re: Re[2]: [PHP] sessions help

2002-06-13 Thread Miguel Cruz
On Thu, 13 Jun 2002, Kevin Stone wrote: > Your problem is here.. > > return ($_SESSION['node'] = $node_id); > > I do not believe that you can both set and return a varaible on the same > line. FYI, the variable which you're returning in this function is global.. > so there's no