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 i
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, J
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
/home/web/
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 w
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 co
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
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
er 2002 2:19 AM
> 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
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
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 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
> 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
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\
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
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
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
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
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
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 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
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
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:
>
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
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
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\
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
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
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
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:
>
>-
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
-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 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
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!
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");
}
}
#===
[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
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
36 matches
Mail list logo