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!
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
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
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
-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
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:
>
>-
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
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
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
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
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\
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
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
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:
>
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
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
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
[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
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");
}
}
#===
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
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
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
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
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
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\
> 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
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
27 matches
Mail list logo