[PHP] sessions help - apache2 + mod_auth_ldap + PHP

2003-07-28 Thread th0th
Hello everyone! I am having some issues with authentication and was wondering if someone out there could point me in the right direction. I am using apache2 and have htaccess setup to require a valid user via mod_auth_ldap communicating with an ldap server. Everything works like a million bucks

[PHP] sessions help

2003-07-17 Thread Dante O. Cabrera H.
I m working whit session's and I had this error : Warning: Cannot send session cache limiter - headers already sent (output started at /home/web/validacion.php:8) in /home/web/validacion.php on line 47 Warning: Cannot add header information - headers already sent by (output started at

Re: [PHP] sessions help

2003-07-17 Thread Justin French
You called session_start() too far down the page... and by that time, you had already outputted something (text, html, or even just blank lines) to the browser. 1. rearrange you code so that session_start() is as close to the top as possible 2. implement output buffering Justin On Friday,

[PHP] Sessions help needed!

2003-07-05 Thread John Fuller
Hello all, I am new to php in general and am trying to set up a user authentification system with mysql. The registration page works well and sends all of the data to the appropriate table in mysql. However, when I try to get the registered user to log in and start a session, the system

[PHP] Sessions help please

2002-10-24 Thread Bryan McLemore
Hi guys I'm a little confused on how sessions work. ok I use session_start(); to get started I know that but then the manual starts to confuse me with all of the garbled text about passing the SID. How do I tell if it was compiled with transparent SID passing? Also I'm not sure how to use

RE: [PHP] Sessions help please

2002-10-24 Thread Peter Houchin
To: PHP - General Subject: [PHP] Sessions help please Hi guys I'm a little confused on how sessions work. ok I use session_start(); to get started I know that but then the manual starts to confuse me with all of the garbled text about passing the SID. How do I tell if it was compiled

[PHP] Sessions help Please

2002-10-24 Thread Bryan McLemore
Hi guys I'm a little confused on how sessions work. ok I use session_start(); to get started I know that but then the manual starts to confuse me with all of the garbled text about passing the SID. How do I tell if it was compiled with transparent SID passing? Also I'm not sure how to use

RE: [PHP] Sessions help Please

2002-10-24 Thread Peter Houchin
have a look on phpbeginner there is a couple of articles/tutorials that explain this also look at previous posts :) -Original Message- From: Bryan McLemore [mailto:Kaelten;worldnet.att.net] Sent: Friday, 25 October 2002 6:39 AM To: PHP - General Subject: [PHP] Sessions help Please

Re: [PHP] Sessions help Please

2002-10-24 Thread Justin French
on 25/10/02 6:38 AM, Bryan McLemore ([EMAIL PROTECTED]) wrote: Hi guys I'm a little confused on how sessions work. ok I use session_start(); to get started I know that but then the manual starts to confuse me with all of the garbled text about passing the SID. How do I tell if it was

[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[2]: [PHP] sessions help

2002-06-14 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 reason

[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

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

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:\program

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

Re[2]: [PHP] sessions help

2002-06-13 Thread Leston Drake
It's the 1st line after ?php in both files. 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

Re[3]: [PHP] sessions help

2002-06-13 Thread Julie Meloni
LD It's the 1st line after ?php in both files. LD 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

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:

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: Re[2]: [PHP] sessions help

2002-06-13 Thread Kevin Stone
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. With your direction, I got rid of the warning about the headers

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

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

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 stripped the code down to barest bones

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

2002-06-13 Thread Leston Drake
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']}.; ... [session.php] ... $_SESSION['node'] = 10.2; ... Other than the standard html, head, title, body tags

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, title, body tags

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

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=

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 compare

[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!

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

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 successive

[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");

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:

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 ?php