Hi,
You have to make the code yourself,
After session_start you should check the session for some
variable you use to check if the user is logged in
eg:
C.
"Jake McHenry" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
How can I make my site auto log out a use
Hello Philip,
On 14 Feb 2004 at 18:48, Philip J. Newman wrote:
> Whats the best information to add to a session to say a user is logged in?
>
> I currently have $siteUserLogIn="true";
>
> anything else that I could add to beef up security?
You'll find an in-depth answer to your question in an
Figured it out.
Had to turn on RegisterGolbals (which I had, but didn't restart Apache).
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>Manuel Vázquez Acosta wrote:
>
>> A tricky way to achive this is:
>> 1. Start the session when the user request the login page
>> 2. Send a hidden field with the PHPSESSID
>> 3. When receiving the post compa
Manuel Vázquez Acosta wrote:
A tricky way to achive this is:
1. Start the session when the user request the login page
2. Send a hidden field with the PHPSESSID
3. When receiving the post compare the current session id with the
submitted by the form, if they match it's likely the sessi
A tricky way to achive this is:
1. Start the session when the user request the login page
2. Send a hidden field with the PHPSESSID
3. When receiving the post compare the current session id with the
submitted by the form, if they match it's likely the session has not
expired.
Other sol
atthew Weier O'Phinney [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 9:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Session expiry issues in IE, still.
* Tarrant Costelloe <[EMAIL PROTECTED]>:
> I wrote to the list a couple of days ago about issues Planet-Tolkien.com
> m
* Tarrant Costelloe <[EMAIL PROTECTED]>:
> I wrote to the list a couple of days ago about issues Planet-Tolkien.com
> members were experiencing with Internet Explorer, where their PHP based
> $_SESSION seemed to be expiring very speradically, where as Mozilla and
> Opera browsers this issue was not
For those interested I was able to get to the bottom of this issue. My
hosting supplier uses multiple servers to do load balancing. As such the
folder in which the session variables were stored was stored in a /tmp file
on each of the servers. That explained why the session variables would
randomly
Hi Aniruddha,
Try using
session_start();
$HTTP_SESSION_VARS['session_referer'] = "abc.com";
and
if (session_is_registered('session_referer'))
go to abc.com;
Regards,
Andy
"Aniruddha" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi PhpTeam,
>
> Iam runing PHP 4.3.0 on Apache
Yeah I did that, sorry I just didn't note it in the snippit.. and it is
now working with the $_SESSION function, i just had to restart the
browser to clear the cache after updating the code.
jas
Pete M wrote:
need to issue a
session_start()
at top of page
Pete
Jas wrote:
Not sure why this i
need to issue a
session_start()
at top of page
Pete
Jas wrote:
Not sure why this is happening but I think it has something to do with
an include statement...
[Server environment]
Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3
register_globalsOnOn
report_memleaksOnOn
safe_modeOffO
Behalf Of J. Cox
> Sent: October 19, 2003 5:30 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Session hijacking
>
>
>
> "Ryan A" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > NO! Globals are on
> > And asking the others t
DXEBBWTYUU
- Original Message -
From: "J. Cox" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, 19 October, 2003 20:30
Subject: [PHP] Re: Session hijacking
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> NO! Glob
The 'above' would make all items of $_SESSION array into variables... Errm..
$_SESSION["id"] would become $id, $_SESSION["username"] would become
$username and so on...
Not completely sure this'll work, but most likely as they already exist and
you only change their values, so they should remain g
Hey,
Thanks for replying.
**
$_REQUEST is a great superglobal, check it out...
And at the top of the hijacked script:
while(list($tmp1,$tmp2)=each($_SESSION))
$$tmp1=$tmp2;
$tmp1=tmp2=NULL;
Could work.. :p
Can you tell me what the above does please? (am quite a
$_REQUEST is a great superglobal, check it out...
And at the top of the hijacked script:
while(list($tmp1,$tmp2)=each($_SESSION))
$$tmp1=$tmp2;
$tmp1=tmp2=NULL;
Could work.. :p
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Ryan A" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EM
Hey,
> Use an ini_set in your sessions script (I am assuming that you are using a
> seperate script to manage your sessions)
Not really, I use authenticate for the login, then above each script i have
a session_start() throughout the site.
Its gotten to be a habit that i start a script with sessi
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> NO! Globals are on
> And asking the others they tell me that around 20% of the scripts (around
> 300 scripts) wont function with globals off :-(
>
> What to do?
Use an ini_set in your sessions script (I am assuming that yo
NO! Globals are on
And asking the others they tell me that around 20% of the scripts (around
300 scripts) wont function with globals off :-(
What to do?
Please help.
-Ryan
P.S how can you do this even with globals on?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
please paste an example of the 2 pages
Harald Kürsten wrote:
Hi.
In my script I start a session, register certain variables and redirect to
the next page.
The session file is written to /tmp, but contains no data !
Any idea ?
Thanx for help,
Harald
--
PHP General Mailing List (http://www.php.net
* Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]):
> :-) cool thank you!
> is any "$_"-variable superglobal? $_REQUEST, $_POST, ...?
Correct.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
:-) cool thank you!
is any "$_"-variable superglobal? $_REQUEST, $_POST, ...?
cheers,
jazper
"Curt Zirzow" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> * Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]):
> > Probably i got the problem... but i don't know how to solve it!!!
* Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]):
> Probably i got the problem... but i don't know how to solve it!!!
>
> i include one of my class.
> in the constructor of this class i did a global...
> global $_SESSION;
>
> as soon as i delete that line. my script works perfect...
>
> is this n
Probably i got the problem... but i don't know how to solve it!!!
i include one of my class.
in the constructor of this class i did a global...
global $_SESSION;
as soon as i delete that line. my script works perfect...
is this not allowed anymore... to access $_SESSION in a constructor??
regar
Problem was that the TMP dir was full and we couldn'T write down the session
file... Seems this jams the server completly. Be aware that if anything like
that happen to you that you have to check fro the TMP files that might be
overflooding your partition.
"Mathieu Dumoulin" <[EMAIL PROTECTED]> wr
It could be a warning in your script. On your local server, maybe you have
error reporting set to minimal (ie. don't report warnings), whereas the ISP
server might have it turned up higher by default.
near the top of your script reporter_view.php put in the line
error_reporting(E_ALL); ie.
Mayb
... and line 5 of reporter_view.php reads what? =/
Anders Thoresson wrote:
Hi,
I've a login script that works fine on my local server, but when I runs
it from my ISP I get the following error:
Warning: Cannot send session cookie - headers already sent by (output
started at /export/home/thore/pu
session_start();
should be on the first line in the script.
regds,
-Original Message-
From: Iggy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 20:08
To: [EMAIL PROTECTED]
Subject: session id
can somebody tell me why I am getting this:
Warning: session_start() [function.session
The function session_start is sending a cookie. This means that you can't
echo anything before. Its the same rules as with setcookie.
"Iggy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> can somebody tell me why I am getting this:
> Warning: session_start() [function.session-start]
Try
if ( isset($_SESSION['verified_user'])==1) {
...
}
or in main.php try to print out if there any variable or not?
"Guru Geek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I'm trying to use sessions for the first time.
>
> I have a log in script that gets the user
Are you using something like $_SERVER['HTTP_HOST'] or $_SERVER['PHP_SELF']
to get the base URL for the app when doing the redirect? If you have the
whole URL typed in and switch from something like www.mydomain.com to
mydomain.com, the browser may think it's a different site and loose the
cookie wi
Do not echo $query or any output before session_start(); or
session_register("xxx"); (mean headers)
//echo $query
Or may be you can put ob_start(); before first output and put
ob_end_flush(); after last headers
ob_start();
echo $query
.
.
//your code.
.
.
session_register("ses_level");
ob_end_flu
> i am having a terrible time killing the session
> someone please please help me...
This one works for me:
session_start();
$_SESSION = array();
session_destroy();
But I am surprised that there is no single command to kill the session.
The semantics of "session_destroy()" suggest that it do
I think a database session would be of more use to you since you would have
more control over the lifetime of the session etc
"Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > From: "Hans Prins" <[EMAIL PROTECTED]>
> >
> > can you show
> From: "Hans Prins" <[EMAIL PROTECTED]>
>
> can you show us the PHP code that you use to manage your session?
Sure. You say in a following post:
> I am asking because if you are using: session_set_cookie_params(), the
> effect of this function only lasts for the duration of the script.
I'm not
I am asking because if you are using: session_set_cookie_params(), the
effect of this function only lasts for the duration of the script.
"Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm using sessions for authentication in a content managem
can you show us the PHP code that you use to manage your session?
"Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm using sessions for authentication in a content management system and
> experiencing rare but occasional problems with the sess
What you could do, is get the current time stamp using time() or date() and
create a sesion variable with this value, when they login (and the session
is created. Then when they logout, and the sesion is destoyed get the
current time stamp again and minus it from the start time.
Note: This requir
Hi all,
> 1.If register_globals is on, then doing an unset($_SESSION["blah"]), to unset
> a session variable will not work as the variable will be unset in that
> particular instance but will be restored in next instance of that session.
> Hence session_unregister("blah") also must be used to prop
This variable is registered in the Session, and the variable isn't active
until the page refreshes. It's hard to explain. I thought I would try.
There are some things you can do. If you need the variable right away, you
can do this:
if (isset($HTTP_SESSION_VARS["user1"])) {
$user1 = $HTTP_SESS
On Saturday 11 January 2003 18:39, Noel Wade wrote:
> Nevermind, just found the $HTTP_SESSION_VARS array...
If you're using a relatively recent version of PHP, you should use $_SESSION.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design
Nevermind, just found the $HTTP_SESSION_VARS array...
Thanks anyways! Take care,
--Noel
"Noel Wade" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> So I have a session variable; but with register_globals active on the
server
> I'm hosted at (no wa
I don't normally have problem with using session functions on the Win2000
Server using IIS 5. It work pretty well. You may will want to narrow down
the problem and find out if it is a session problem only or if it is
something else. I don't use some of the IIS patches like the IIS Lockdown
as an
Dear Noel Wade,
I've been coding session for quite sometime, but this is the first time i
encounter such problem...
in the login.php page, i've tested out
session_is_registered("userkey");
it was TRUE.
but when i redirect it to main.php
and did a checking on session_is_registered("userkey");
it
James -
Don't know how you're working with Cookies and sessions for sure, but the
default / "easy" way to check for an established session is to put
"session_start();" at the top of every page that's going to access the
session variables. That will check for an established/open session and make
t
John Taylor-Johnston wrote:
Jason wrote:
RTFM again.
Jason, again, I RTFM, but did not get it working.
Otherwise I wouldn't have dared ask a question.
Sessions depends on a number of factors
including your version of PHP and the setting of register_globals.
The FM manual says:
"$_SESSION
Instead of
while(list($k,$v)=each($_POST)){
$_SESSION[$k]=$v;
//echo "_name_ ".stripslashes($k)." _value_
".stripslashes($v)."";
}
why not just
$_SESSION = array_merge($_SESSION,$_POST);
???
Michael Kimsal
http://www.phpappserver.com
734-480-9961
--
PHP General Mailing List (http://www.php
Thanks.
John
> When faced with this problem I tried the following (works)
>
> The top section of PHP code just reads the POST return array
> and plops it into a series of successive _SESSION vars
>
> Included is a FORM to use that shows the simple code at work
>
> HTH
> TomHenry
>
> ===
When faced with this problem I tried the following (works)
The top section of PHP code just reads the POST return array
and plops it into a series of successive _SESSION vars
Included is a FORM to use that shows the simple code at work
HTH
TomHenry
Tested =
> No i meen one var in two diferent session! (For example: Counter of
> all user available in this moment on the site or all users nicks)
I think what your after is an Application variable. One variable that's
available to every script that's running, or session, or something like
that? There's no
Hello matty,
Thursday, December 12, 2002, 2:43:44 PM, you wrote:
mr> what do you mean - same 2 vars ?
mr> if you mean 2 session vars, than they will be availble on every web page
mr> which uses session calls.
mr> else, let me know what do you mean exactly.
mr> "Boris Kolev" <[EMAIL PROTECTED]
what do you mean - same 2 vars ?
if you mean 2 session vars, than they will be availble on every web page
which uses session calls.
else, let me know what do you mean exactly.
"Boris Kolev" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello php-general,
>
Hello Jason,
I had similar problem when I try to use global array
$HTTP_SESSION_VARS to manipulate with session variables in PHP version
4.1.x.
If you use PHP version < 4.2.0 you need to use function
`session_register` to add variable to session.
If you use PHP 4.2.0 (or greater) you need to use
Hey again.
In the php.ini if
register_globals = Off - which is the default setting
then you will need to use $_SESSION['variable']
- Lee
"Jason Romero" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> when using session registered variables
> i can only get the
Hey
Also in your php.ini do you have
session.use_cookies = 1
if its set to 0 then you will need to pass the variables through the URL.
- Lee
"Jason Romero" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> when using session registered variables
> i can only get
> -Original Message-
> From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]]
> Sent: 16 November 2002 07:23
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: session handling
>
>
> Here's what you need:
>
> on page 1.php:
>
> session_start();
> $
Hey you may want to try
in page2.php :
session_start();
echo('{$_SESSION['abc']}');
Lee
"Anjali Kaur" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i want to access some variables generated in one page
> in all the other pages, so i thought of using
> $_SES
At 18:04 16.11.2002, Lars Espelid said:
[snip]
>Session-vars won't work on my pages either.
>Tried your suggested code, but get the following errors in my browser:
>
>Page 1:
>Warning: open(/tmp\sess_22b746f8ee84cf7aadb8da0b37ce9d2a, O_RDWR) failed: m
>(2) in
Session-vars won't work on my pages either.
Tried your suggested code, but get the following errors in my browser:
Page 1:
Warning: open(/tmp\sess_22b746f8ee84cf7aadb8da0b37ce9d2a, O_RDWR) failed: m
(2) in c:\apache group\apache\htdocs\system\kode\test.php on line 2
Page 2:
Warning: open(/tmp\se
Here's what you need:
on page 1.php:
on page 2.php:
You have to register the variable with the session first so it knows that
it's a variable that needs monitored and, when the script finishes, needs
saved.
Hope this helps!
Lewis
"Anjali Kaur" <[EMAIL PROTECTED]> wrote in message
[EMAIL P
I don't use cookies when I use sessions.. Saves hassles
Regards
Chris Kay
> -Original Message-
> From: Erwin [mailto:erwin@;isiz.com]
> Sent: Monday, 4 November 2002 6:50 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Session cookies
>
>
> >
> When the user logs in , i create a session with session varialbles,
> the session cookie is saved on clients computer.
>
> When i log off i say
>
> session_unset();
> session_destroy();
> setcookie(session_name());
>
> The session in the tmp is deleted , but the cookie is still there , i
> know t
why don't you use the session_register("voted") function. Then if you want
to check it
you can use the session_is_registered("voted) .
-Matias
"Stephen" <[EMAIL PROTECTED]> wrote in message
news:000a01c27ba1$d8871e00$0200a8c0@;melchior...
I'm trying to register a session for a poll by first open
Hi Jeff,
I manage the website for the credit report reseller. We don't normally
use cookie but we use session only. You were expressing some concern about
someone knowing the session id. What we normally use is we used the
encrypted session id and use use long aphanumeric number. This mak
Chris and I have been working on this through private emails, and we (I mean
he) finally figured out what the problem was...
session.cookie_path was set to /tmp instead of /.
I wanted to thank him for taking the time to help me work through this...
Jeff
"Chris Shiflett" <[EMAIL PROTECTED]> wrot
I put this block of code in, and all of the array's they should send back
are 100% blank. I will try the protoscope to see what I can turn up on
this.
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Jeff,
>
> One quick thought ...
>
> Is your
Jeff,
One quick thought ...
Is your cookie domain the same domain as the URL domain you are using to
test this? If not, the browser will not send the cookie, so that is a
potential reason for this behavior.
If the domain is the same, I see no reason why this shouldn't work, but
I have two id
ok - no cookie exists... I have Netscape set to accept all cookies. I'm
wondering if it is in my link, or if it is a configuration error somewhere.
here is a copy of the session options from my php.ini (as copied from Zend
Server Center)
Session data handler files
Session save path/tmp
Use cook
Jeff,
My apologies then. Somehow your response never arrived. It is still best
to always "reply all" for things like this. You get the benefit of
hearing several people's perspectives, and you also potentially help
others who have the same question now or who may have it in the future
(and ch
I responded to this in a private email to you, and not on the forum... I
did respond. I will post here again so there is no question;
>I want to force it to use a cookie that points to a transparent SID on
>my system.
what I mean by this is it was my understanding when reading the sessions
do
You've already posted this, and you never answered the questions that
were asked. Thus, your question is every bit as unclear as the previous
time.
Perhaps if you put forth a little effort, we might also.
Just a helpful suggestion,
Chris
Jeff Bluemel wrote:
>still looking for some solutions
still looking for some solutions on this - anybody else have any
suggestions?
"Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> OK guys...
>
> here's my question - I'm using 4.2.3 and apache 1.3.26, and I've got
> sessions setup. however, it seem
tions that when set to
>http://site/file.php instead of just /file.php it resets the session.
>
>-Original Message-
>From: David Cramblett [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 09, 2002 11:38 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP] RE: Session seam
et to
http://site/file.php instead of just /file.php it resets the session.
-Original Message-
From: David Cramblett [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] RE: Session seams to be clearing randomly
Additionally,
I
Additionally,
I forgot to mention that the session file is still viewable in the tmp
directory after the session clears.
David
David Cramblett wrote:
> Hello,
>
> I am having trouble with my session clearing after a few clicks around
> the application. The session is started in a header w
Hello,
I am having trouble with my session clearing after a few clicks around
the application. The session is started in a header which is loaded
first on every page in my application and I can not isolate the clearing
to one page or link, it seams to be random. I can click maybe 10 - 20
>I'm trying to get the one variable I stored insite a session, the
>variable's name is $username I am trying to do it like this, but I think
>it's wrong:
>
>$PHPSESSID = session_encode();
>$username = session_decode();
>
>It tells me I have wrong parameters for session decode.
>
>What am I suppose
might want to do this instead of haven people press
the back button.
- Victor > www.argilent.com
-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 03, 2002 6:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Session problem
> I am using session_start
> I am using session_start() and
> session_register("variablename") . The when I click on
> the back button from the browser it shows me the
> following error: "Warning: Page has Expired The page
> you requested was created using information you
> submitted in a form. This page is no longer avail
Just edit your 'php.ini' file, if 'register_globals = Off', then set it to
On. It will solve a lot of problems if you are learning PHP from examples.
"Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> Do you have an example?
>
> Tha
Hi,
Do you have an example?
Thanks.
"Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to know if there are any changes on session of PHP between
the
> version 4.1.0 and 4.2.2?
>
> Thanks.
>
> Breno Cardoso Perucchi
> [EMAIL
If you encounter any problem with session variables, it may not caused by
session. An important change between 4.2.0 or above and versions below is
that the 'register_globals' directive will be set Off by default in
'php.ini' file. So you can't access session variables (e.g. $var) directly,
inst
>the problem I have, however, is that on the third page of my wizard, if the
>user submits only some of the required fields, it submits back onto itself
>and displays an error as required, but the problem is that when you fill in
>the missing fields and move on to the next page (in effect back ont
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> "Per" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Daniel Canil wrote:
> > > I have jsut recently installed a php development kit on my windows
> platform.
> > > Im interested in using the sessi
"Per" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Daniel Canil wrote:
> > I have jsut recently installed a php development kit on my windows
platform.
> > Im interested in using the session functions but I am recieving this
error
> > when I use session_start
Daniel Canil wrote:
> I have jsut recently installed a php development kit on my windows platform.
> Im interested in using the session functions but I am recieving this error
> when I use session_start():
>
> Warning: open(/tmp\sess_540ded508edf231c47fe85bd970f936a, O_RDWR) failed: m
> (2) in d:
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I have jsut recently installed a php development kit on my windows platform.
> Im interested in using the session functions but I am recieving this error
> when I use session_start():
>
> Warning: open(/tmp\sess_540ded508edf231c47fe85bd
>This may be a pretty naive question.
>Do we have to use the key word
>session_register("variablename");
>in every single page, in which we plan to use the "variablename"?. Or is it
>possible that we register the variablename once, and in the subsequent pages
>continue to access it using $variabl
Alexander Ross wrote:
>ok ... but the line of code that was the culprit was simply:
>
>print "var id = ".$id.""; //for debugging
>
>how does that line constitute sending more header info?
>
It does not constitute sending more headers, but it does say that no
more may be sent (as you have already
When you request a page, for instance, php.net, your web browser sends HTTP headers to
the server that holds php.net on it. When the server receives these HTTP headers, it
knows which page is needed, and sets up it's own headers to send back to the browser,
such as location, file types, etc.
ok ... but the line of code that was the culprit was simply:
print "var id = ".$id.""; //for debugging
how does that line constitute sending more header info?
Alex
"Chris Hewitt" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Alexander Ross wrote:
>
> >I'm
Alexander Ross wrote:
>I'm slowly beginning to undrestand this, but please bear with a php novice.
>When/how were the headers sent? In other words, how do I know that they
>have already been sent?
>
Because something other than a header has gone out. As something other
has gone out, it is not p
I'm slowly beginning to undrestand this, but please bear with a php novice.
When/how were the headers sent? In other words, how do I know that they
have already been sent?
Thanks for humoring me
alex
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> >what does th
>what does this mean:
>
>Warning: Cannot send session cache limiter - headers already sent (output
>started at /home/.edy/alexross/bleen.net/forum/discussion_fns.php:88) in
>/home/.edy/alexross/bleen.net/forum/index.php on line 5
On line 88 in discussion_fns.php there is an echo or print or even
did you echo anything or place this session cache command after any html
??
coz if you did it means you can't change any header information once you've
displayed something
kinda like this you can change the header information on an email you
just sent
"Alexander Ross" <[EMAIL PRO
Don't cross post such question...
All you need to understand is how cookie is managed unless
you are passing session id via URL.
Read RFC2965 and RFC2964.
You probably want to read netscape cookie spec also.
--
Yasuo Ohgaki
Youngie wrote:
> Why would my session data not be deleted after my bro
>All,
>
>My session is not expiring and I believe that I set this correctly.
>I'm looking for a 15 minute expiration time.
>
>My current setting:
>
>session.cookie_lifetime = 900 ; lifetime in seconds of cookie
>; or if 0, until browser is restarted
>
>Is
t; I'd always called the PHP into the SRC tag. :-)
>
> Good luck
> -Kevin
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 03, 2002 11:33 AM
> Subject: Re: [PHP] Re: SESSION ne
C tag. :-)
Good luck
-Kevin
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 11:33 AM
Subject: Re: [PHP] Re: SESSION newbie question ***STILL UNRESOLVED***
> I did as you said Richard, however I still encounter the same problem,
>
201 - 300 of 357 matches
Mail list logo