[PHP] Re: PHP Sessions

2010-03-12 Thread Martine Osias
The sessions variables are OK. They don't print when I put them on the HTML page with this code. align="right"> Thank you. Martine ""Martine Osias"" wrote in message news:95.0c.13686.c7cda...@pb1.pair.com... Hi: I need to store variables to send then between pages. I don't need th

Re: [PHP] sessions/cookies

2008-01-22 Thread Eric Butera
On Jan 22, 2008 9:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > I wrote an authentication class in php4. The sessions dont seem to be > working with internet explorer, just with FF. here is the code below, > a cookies notice pops up when you try and login: Hi, I took a quick look at your c

Re: [PHP] sessions/cookies

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 9:54 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > I realize this link I'm posting is called "auth" > too, but that wasn't my choice. that was kind of funny after your initial criticizm above, but to solars credit, its the auth 'package' so really the name isnt too bad, id say.

Re: [PHP] sessions/cookies

2008-01-23 Thread Jochem Maas
others have given good advice, but let's learn to walk before we run shall we. 1. session_start() should be called once per request. 2. checkValidUser() does a select on all the users in the database, this is *wrong* - do a select with a suitable WHERE clause the retrieves the one user that ma

Re: [PHP] Sessions - session_start()

2006-05-15 Thread nicolas figaro
Jonas Rosling a écrit : Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the site to a host server with PHP

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Thomas Munz
put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: > Hi, > I've been building a site with PHP 5 on my develop machine. I've been > woring alot with session handling. For example I've been using > session_start() now and then depending on where the use

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Jonas Rosling
Den 06-05-15 15.56, skrev "nicolas figaro" <[EMAIL PROTECTED]>: > Jonas Rosling a écrit : >> Hi, >> I've been building a site with PHP 5 on my develop machine. I've been woring >> alot with session handling. For example I've been using session_start() now >> and then depending on where the user/vi

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Jonas Rosling
Den 06-05-15 16.00, skrev "Thomas Munz" <[EMAIL PROTECTED]>: > put ob_start(); on the first line of your page > > on Monday 15 May 2006 15:53, Jonas Rosling wrote: >> Hi, >> I've been building a site with PHP 5 on my develop machine. I've been >> woring alot with session handling. For example I'v

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Eric Butera
On 5/15/06, Jonas Rosling <[EMAIL PROTECTED]> wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the si

Re: [PHP] Sessions - session_start()

2006-05-15 Thread tedd
At 4:33 PM +0200 5/15/06, Jonas Rosling wrote: Den 06-05-15 16.00, skrev "Thomas Munz" <[EMAIL PROTECTED]>: put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring al

Re: [PHP] Sessions - session_start()

2006-05-15 Thread tg-php
session_start() doesn't need to be the first line of your PHP code, it just needs to be called before any other output is performed. Including any blank spaces or anything else. If you have: --- 1: 2: --- It's not going to work because you have a blank line being output to the browser for i

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 8:53 am, Jonas Rosling wrote: > Warning: session_start(): Cannot send session cookie - headers already > sent > by (output started at /var/www/html/index.php:9) in > /var/www/html/index.php > on line 82 > > But I found out that if I put the tag in the absolute top of every > pa

Re: [PHP] SESSIONS QUESTION

2008-07-18 Thread tedd
At 9:59 AM -0700 7/18/08, R.C. wrote: What's the sequence here. I was able to get the password going, protect the main.php page, sent the email etc. but can't get that password to remain on the main.php when they user tries to get back to that page. Really appreciate some input and coding. I a

Re: [PHP] Sessions Issue

2005-08-02 Thread Rory Browne
On 7/29/05, Tom Ray [Lists] <[EMAIL PROTECTED]> wrote: > We built a box about 7 months or so ago using the SuSE 9.1 cd's, > straight install from the CDs. While I've read that sessions are turned > on by default, when we try to call on the sessions functions (like with > phpOpenChat or start_sessio

Re: [PHP] Sessions Issue

2005-08-02 Thread Jason Motes
We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls to undefined function errors. This is lea

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
Yeah, I thought about that. But to be honest, I don't know how to recompile with builds from the CD/rpms. This is the first time I've ever done it this way. So if I get the latest RPM and install it it should activate session right? And then I just need to restart apache2 and I should be good?

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
Again, this won't affect anything since I installed from the CD's and I've always noticed that things installed via CD/rpm have different install paths then source. I'm worried it will look in the wrong spot for Apache...but that could be a un-needed worry. Rory Browne wrote: On 7/29/05, Tom

Re: [PHP] Sessions again....

2005-08-04 Thread James
So what is your question...? - Original Message - From: "Suhas" <[EMAIL PROTECTED]> To: "php-general" Sent: Thursday, August 04, 2005 4:13 PM Subject: [PHP] Sessions again Hello, I am trying to understand how sessions work. I have this code. My understanding is after 1 sec of

Re: [PHP] Sessions again....

2005-08-04 Thread James
al Message - From: "Suhas" <[EMAIL PROTECTED]> To: "James" <[EMAIL PROTECTED]>; "php-general" Sent: Thursday, August 04, 2005 4:35 PM Subject: Re: [PHP] Sessions again Well script is not working as it is supposed to be. Even after 2 hrs I v

Re: [PHP] Sessions again....

2005-08-04 Thread Suhas
Well script is not working as it is supposed to be. Even after 2 hrs I visit the page the count variable increases by 1 than prevois value. Any reason why is that so? If my understanding is not correct please correct me. Thanks SP On 8/4/05, James <[EMAIL PROTECTED]> wrote: > So what is your qu

Re: [PHP] Sessions again....

2005-08-04 Thread Jochem Maas
Suhas wrote: Hello, I am trying to understand how sessions work. I have this code. My understanding is after 1 sec of script completion, (may be little after that), the session should destroy. I understand that it is huge overhead for server, not planning to do this but want to understand h

Re: [PHP] sessions problems

2005-04-30 Thread Deep
Hi, When someone hit the logout page say "logout.php". You can write the code in that page itself to update the record. Since the username of that particular user is stored as a session as long as the user closes the browser window. So in the logout page you can add like this. session_sta

Re: [PHP] Sessions Issue

2005-07-29 Thread John Nichel
Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls to undefined funct

Re: [PHP] Sessions Issue

2005-07-31 Thread Tom Ray [Lists]
phpinfo() says that sessions are disabled. So, between that and the fact I get the undefined function errors when I try to use session_start() or other session commands, I'm under the strong impression that sessions are disabled. So this leads me back to my original questions, can I activate s

Re: [PHP] Sessions Issue

2005-07-31 Thread Rasmus Lerdorf
Tom Ray [Lists] wrote: > phpinfo() says that sessions are disabled. So, between that and the fact > I get the undefined function errors when I try to use session_start() or > other session commands, I'm under the strong impression that sessions > are disabled. > > So this leads me back to my origi

Re: [PHP] Sessions Issue

2005-08-01 Thread Burhan Khalid
On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session(

[PHP] Re: PHP Sessions

2003-01-21 Thread Foong
I used to have the same problem(sort of) I am not sure if my solution applies to you. Here is what i did, to pass session to one page to another you must call session_start(); ON EVERY PAGE to access registered session variables use the session super global array like: $_SESSION['userid']; Sorr

Re: [PHP] Sessions & Security

2003-01-23 Thread Chris Shiflett
--- "Clarkson, Nick" <[EMAIL PROTECTED]> wrote: > I am trying to find the best method for implementing > sessions in PHP to track/limit users. However, the > more I read, the more I am concerned about security. > Can anyone give me a definitive answer as to the best > method of tracking users with

RE: [PHP] Sessions & Security

2003-01-23 Thread Clarkson, Nick
Thanks - I've only just joined the list so must have missed your previous msgs. I'll give them a read later. Thanks again. Nick -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: 23 January 2003 15:28 To: Clarkson, Nick; [EMAIL PROTECTED] Subject

RE: [PHP] sessions garbadge

2003-03-13 Thread John W. Holmes
> My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for > testing . When i create a session on my site and i dont log out , the > session var will still remain on the server , ok , after an hour (not > exactly an hour) , when i surf the site , the collector destroys that var > on >

RE: [PHP] sessions garbadge

2003-03-13 Thread Ford, Mike [LSS]
> -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: 13 March 2003 10:24 > > > My gc_maxlifetime = 3600 (1 hour) and my probability = 100 > , just for > > testing . When i create a session on my site and i dont log > out , the > > session var will still remain on

Re: [PHP] sessions garbadge

2003-03-13 Thread CPT John W. Holmes
> > > My gc_maxlifetime = 3600 (1 hour) and my probability = 100 > > , just for > > > testing . When i create a session on my site and i dont log > > out , the > > > session var will still remain on the server , ok , after an > > hour (not > > > exactly an hour) , when i surf the site , the collect

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, J

RE: [PHP] Sessions doubt

2003-09-15 Thread Jay Blanchard
[snip] do I really need to have it in both or just one? or does it really matter at all? if just one it should be the file that is calling top.php right? [/snip] Just one, the calling page/script -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

RE: [PHP] Sessions doubt

2003-09-15 Thread Javier Tacon
In PHP >= 4.3.3 versions, start a session when you have a session started already, causes a notice error and the second call is ignored. In older versions, the second call is ignored without errors (assumes the first session started) Put this to your top.php: @session_start(); And then, remo

Re: [PHP] Sessions question

2003-03-20 Thread Jason Wong
On Friday 21 March 2003 13:57, Beauford.2002 wrote: > I have read some posts to this list on sessions and have read as much as I > can find on them, but one problem still exists which I can't figure out. > How do I kill the session when the user leaves my site. There is simply no way to tell whe

Re: [PHP] Sessions question

2003-03-20 Thread Beauford.2002
PROTECTED]> Sent: Friday, March 21, 2003 1:34 AM Subject: Re: [PHP] Sessions question > On Friday 21 March 2003 13:57, Beauford.2002 wrote: > > > I have read some posts to this list on sessions and have read as much as I > > can find on them, but one problem still exists which I ca

Re: [PHP] Sessions question

2003-03-20 Thread Justin French
on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote: > I have read some posts to this list on sessions and have read as much as I > can find on them, but one problem still exists which I can't figure out. How > do I kill the session when the user leaves my site. So if a user is on > www.

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 2:46 AM Subject: Re: [PHP] Sessions question > on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote: > > > I have read some posts to this list on sessions and have read as much as I

Re: [PHP] Sessions question

2003-03-21 Thread Justin French
t;[EMAIL PROTECTED]>; "PHP General" > <[EMAIL PROTECTED]> > Sent: Friday, March 21, 2003 2:46 AM > Subject: Re: [PHP] Sessions question > > >> on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote: >> >>> I have read some posts to this

RE: [PHP] Sessions question

2003-03-21 Thread Ford, Mike [LSS]
> -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED] > Sent: 21 March 2003 15:59 > > on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote: > > > What about cookies - someone said if you put no time limit > on a cookie it > > dies when you leave the site - I'm not

RE: [PHP] Sessions question

2003-03-21 Thread Darren Young
nt: Friday, March 21, 2003 9:59 AM > To: Beauford.2002; PHP General > Subject: Re: [PHP] Sessions question > > > I think it's defined as "when the browser is closed", not > "when the browser is no longer in your domain" -- but you'd > have t

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
lt;[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 11:04 AM Subject: RE: [PHP] Sessions question > > -Original Message- > > From: Justin French [mailto:[EMAIL PROTECTED] > > Sent: 21 March 2003 15:59 > > > > on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PR

Re: [PHP] Sessions question

2003-03-21 Thread Kevin Stone
- Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: "Ford, Mike [LSS]" <[EMAIL PROTECTED]>; "'Justin French'" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 12:56 PM

Re: [PHP] Sessions question

2003-03-21 Thread Beauford.2002
y site. It appears though from the answers I have received - that this is not possible B. - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 4:21 PM Subject: Re: [PHP] Sessions que

Re: [PHP] Sessions question

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 08:09, Beauford.2002 wrote: > I don't quite understand this. If a user is on my site and then decides to > go into his favourites and go to yahoo.com - this won't work. I think you > are assuming the user is going to click on something I have set up - I want > this to be i

Re: [PHP] Sessions question

2003-03-22 Thread Beauford.2002
Why? You wouldn't even know it happened - nor would the site. This is just a security precaution. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 22, 2003 2:25 AM Subject: Re: [PHP] Sessions question

Re: [PHP] Sessions Question

2003-06-26 Thread - Edwin -
"Bob Irwin" <[EMAIL PROTECTED]> wrote: > Aside from the fact that bad code can obviously make sessions hackable, what > does everyone think about the security of sessions? > > I rely on them fairly heavily for low-mid range security on some of my > scripts, but if I was to do something that invo

Re: [PHP] Sessions Question

2003-06-27 Thread Bob Irwin
- From: "- Edwin -" <[EMAIL PROTECTED]> To: "Bob Irwin" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 2:39 PM Subject: Re: [PHP] Sessions Question > > "Bob Irwin" <[EMAIL PROTECTED]> wrote: > > > A

RE: [PHP] Sessions Question

2003-06-27 Thread Ford, Mike [LSS]
> -Original Message- > From: Bob Irwin [mailto:[EMAIL PROTECTED] > Sent: 27 June 2003 08:01 > > Oops. > > Forgot to remove the Re: - it was a new thread - I just > replied to an old > message to get the php list email address That's exactly what you shouldn't do. Most newsreaders, and

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
Jake, it would be helpful if we could see your code. That said... first you need to identify what information you need to track in the sessions, and whether you're going to use php sessions (the $_SESSIONS array) or build your own mysql based session tracker. to use php sessions: you will need s

RE: [PHP] Sessions Question

2003-10-14 Thread Chris W. Parker
Jake McHenry on Tuesday, October 14, 2003 5:00 PM said: [snip] > Can someone point me in the right direction here? I'd love to help you but you did not provide enough information. What exactly are you trying to do and what is it failing? Try showing us the code i

RE: [PHP] Sessions Question

2003-10-14 Thread Mike Brum
ce. -M -Original Message- From: Chris Hubbard [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 9:24 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Sessions Question Jake, it would be helpful if we could see your code. That said... first you need to identify what information you

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
me&inout=$inout\n\n"); } } else { echo "Error: invalid password!"; } } echo <<http://www.nittanytravel.com > -Original Message- > From: Chris Hubbard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 9:24 PM > To: [EMAIL PROTECTED

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
] = $id; $_SESSION["name"] = $data["name"]; $_SESSION["email"] = $data["email"]; header("Location: http://ubb.atlantic-records.com/gallery/admin/index.php";); }else{ // if name and pa

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
ttanytravel.com > -Original Message- > From: Chris Hubbard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 9:24 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Sessions Question > > > Jake, > it would be helpful if we could see your code. > > T

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
Jake, given that I can't see what is in config.php time.php, I'll focus on your index.php. I assume that the issues I point out will be applicable to config and time also. this: if ($_POST["SuBmIT"]) { // make sure posted variables are clean and are the kind you expect if ($_POST

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
YearToShow-5,$YearToShow-4,$YearToShow-3,$YearToShow-2,$YearToS how-1,$YearToShow,$YearToShow+1,$YearToShow+2,$YearToShow+3,$YearToSho w+4,$YearToShow+5); ?> Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com > -Original Message- > From: Chris Hubbard [ma

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
y Nittany Travel MIS Coordinator http://www.nittanytravel.com > -Original Message- > From: Chris Hubbard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 11:37 PM > To: Jake McHenry; [EMAIL PROTECTED] > Subject: RE: [PHP] Sessions Question > > > Jake, &g

Re: [PHP] Sessions Question

2003-10-15 Thread James Kaufman
On Tue, Oct 14, 2003 at 05:23:54PM -0800, Chris Hubbard wrote: > to use php sessions: > you will need some place where you set up/create the sessions. typically > this is the login page. let's assume you'll use the login page. The logic > for the login page goes something like this: > 1. presen

RE: [PHP] Sessions Question

2003-10-15 Thread Ford, Mike [LSS]
On 15 October 2003 01:31, Mike Brum contributed these pearls of wisdom: > One quick note - if you're starting a session then you can't > user the header() function afterwards. You'll get the lovel > "headers > already sent" > error. Actually, so long as you do both *before* outputting any actual

RE: [PHP] Sessions Question

2003-10-15 Thread Ford, Mike [LSS]
On 15 October 2003 05:25, Jake McHenry contributed these pearls of wisdom: > Yes, submit, inout, username and password all come from the > index.php form submission, but username changes throughout the > different pages, that was one of my problems. I'm not sure > what I did wrong before, but once

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
Mike Brum on Tuesday, October 14, 2003 5:31 PM said: > One quick note - if you're starting a session then you can't user the > header() function afterwards. You'll get the lovel "headers already > sent" error. > > Be sure to use an alternate method of redirection if

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
Jake McHenry on Tuesday, October 14, 2003 7:00 PM said: > Mainly what my problem is, is that when I turn Register_Globals = Off, > then my scripts stop working. I can't even get past the page I showed > you, the login page. No errors, it's just like I didn't enter an

RE: [PHP] Sessions Question

2003-10-15 Thread Jake McHenry
> -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 15, 2003 12:01 PM > To: Jake McHenry; [EMAIL PROTECTED] > Subject: RE: [PHP] Sessions Question > > > Jake McHenry <mailto:[EMAIL PROTECTED]> > on Tuesd

RE: [PHP] Sessions Question

2003-10-15 Thread Jake McHenry
> -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 15, 2003 12:01 PM > To: Jake McHenry; [EMAIL PROTECTED] > Subject: RE: [PHP] Sessions Question > > > Jake McHenry <mailto:[EMAIL PROTECTED]> > on Tuesd

RE: [PHP] Sessions Question

2003-10-15 Thread Jake McHenry
Chris W. Parker wrote: > Jake McHenry > on Wednesday, October 15, 2003 12:39 PM said: > >> Also, say on a separate page, how do I call the variabes stored in >> $_SESSION? Like this? $name = $_SESSION["name"]; > > Yes. But whenever you plan to access $_SESSION you m

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
Jake McHenry on Wednesday, October 15, 2003 12:55 PM said: > Once I get a complete list, I can just copy and paste that to all my > files, correct? Yes you can just copy and paste the code. > What happens if I try to call a variable in $_SESSION > that hasn't been

RE: [PHP] sessions problem

2003-12-20 Thread Larry Brown
Make sure you have session_start(); at the beginning of each script you run from the time you start inserting variables to the time you want the session to end. -Original Message- From: Nitin [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 10:48 AM To: PHP-General Subject: [PHP

[PHP] Re: PHP Sessions

2004-02-29 Thread Andre Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 if you try, i think you will see that you can Paul Higgins wrote: Hello everyone, I'm beginning to experiment with PHP sessions. I was wondering if it is possible to place objects into the session? Thanks, Paul _

Re: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
Hello André, Tuesday, March 9, 2004, 10:53:35 PM, you wrote: AVL> I'm using sessions to manage users, by using cookies to store the AVL> session. AVL> My question is, how do I make the session last _forever_? AVL> ATM the session lasts 'till the user closes the browser. Ok first of all - you can

Re: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
But my question is, since I don't deal with cookies directly (PHP does that for me), 'cause I only have to deal with sessions, how can I change the cookies produced by PHP? atm I only session_start() and use the $_SESSION[''], so I don't really know which cookie to change, or how to do it. TIA

Re: [PHP] Sessions problem

2004-12-08 Thread Raditha Dissanayake
Dre wrote: Hi, I need to make sessions work in my local machine .. I'm using Apache 2.0.49 on WINDOWS XP PRO. my php.ini sessions section is session.save_handler = files session.save_path = "C:\php4\tmp" A common problem is that this path is not writable by the webserver please check for that.

Re: [PHP] Sessions problem

2004-12-08 Thread Dre
if u can give me an instance of a writable path it would be great. and yes the data do not get saved and I can not run any thing that depends on sessions as they do not get registered "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dre wrote: > > >Hi, > > > >I n

Re: [PHP] Sessions Timeout

2004-07-27 Thread Jason Davidson
I would put a timelimit on the session, create a session var called time, or loginTime or something, and compare it to time() with php, give a leyway of an hour or something. This is a standard securty measure to prevent people from leaving the pc with a session running all day, and someone else si

Re: [PHP] Sessions Timeout

2004-07-27 Thread Matt M.
> Problem is that when someone goes so far in the ordering process, and then > (for whatever reason) leaves the site, and comes back hours, seconds or > whatever later, and goes again to place an order, the details are different > (time), and the session stays the same so the order entry is entered

RE: [PHP] Sessions Problem !!

2004-08-06 Thread Ed Lazor
You need to give us the error in order to help troubleshoot it. > -Original Message- > I'm kinda new at PHP and I was trying to install one of the mailing lists > and newsletter systems and during the installation process I got errors > evertime the session_start() function called .. > I

Re: [PHP] Sessions Problem !!

2004-08-06 Thread Dre
the exact error messages are == Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\ht

Re: [PHP] Sessions Problem !!

2004-08-06 Thread Miles Thompson
Hard to help when we don't know what the error is. You have to call session_start() before any output to the page, even a single space. Try it with a simple example you create to get a feel on how it works, then break it so it doesn't work, and you'll be in better shape to diagnose your problem

Re: [PHP] Sessions Problem !!

2004-08-06 Thread Kevin Waterson
This one time, at band camp, "Dre" <[EMAIL PROTECTED]> wrote: > Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, > O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache > Group\Apache2\htdocs\maillist\maillist\admin.php on line 1 You need to set the co

Re: [PHP] Sessions Problems

2004-09-03 Thread raditha dissanayake
Octavio Herrera wrote: Hello, im working in a website and I have this problem with sessions I have an admin page where I use session_start() and I have the user interface page where I also use session start, the problem is that when I open the user page, it overwrites my session I previously opene

Re: [PHP] Sessions Problems

2004-09-03 Thread Octavio Herrera
No, I do not store two items with the same key, I just open another session in other page and it just overwrite session data of a previous session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions Problems

2004-09-03 Thread raditha dissanayake
Octavio Herrera wrote: No, I do not store two items with the same key, I just open another session in other page and it just overwrite session data of a previous session hi, again this does not provide enough information,you will need to more clearly state the problem please are you using cooki

Re: [PHP] Sessions Problems

2004-09-03 Thread Mark
--- Octavio Herrera <[EMAIL PROTECTED]> wrote: > No, I do not store two items with the same key, I just open another > session > in other page and it just overwrite session data of a previous > session This is because (I believe) you can't open two cookie-based sessions with two browser windows

Re: [PHP] Sessions Problems

2004-09-03 Thread Jason Davidson
Read up on 'named sessions' I think that may be your solution jason Mark <[EMAIL PROTECTED]> wrote: > > > --- Octavio Herrera <[EMAIL PROTECTED]> wrote: > > > No, I do not store two items with the same key, I just open another > > session > > in other page and it just overwrite session data

Re: [PHP] Sessions Problems

2004-09-03 Thread Mark
--- Jason Davidson <[EMAIL PROTECTED]> wrote: > Read up on 'named sessions' > > I think that may be your solution Interesting... here's a link to php.net. I assume this is what you're talking about... Looks promising. http://us4.php.net/manual/en/function.session-name.php > > jason > > Mark

Re: [PHP] Sessions Problems

2004-09-04 Thread Octavio Herrera
Hi guys well I've been trying with named sessions, and nothing, then I did a pop up window to show me the $_SESSION content and when I reload that window a ramdom number of times, then the session expires and the $_SESSION array disappears!!! what can be this due to?? Im using PHP 4.3.3 and if you

Re: [PHP] Sessions question

2004-10-21 Thread Mike Smith
On Thu, 21 Oct 2004 11:39:23 +0200, Reinhart Viane <[EMAIL PROTECTED]> wrote: > Hey all, i'm new to this list so forgive me if i make any huge > mistakes. > I'm in a beginning stage of learning php and i hope you guys can help me > out with this question: > > in a file named checkuser i do this w

RE: [PHP] Sessions question

2004-10-21 Thread Reinhart Viane
;s say user 1 logs in, his session is registered (with userid > from database is 5 and first_name is XXX) Then another user logs in, > again his session is registered (with userid from database is 1 and > first_name is YYY)' is not always faulty. I've checked everything I know an

Re: [PHP] Sessions question

2004-10-21 Thread Greg Donald
On Thu, 21 Oct 2004 14:43:45 +0200, Reinhart Viane <[EMAIL PROTECTED]> wrote: > Hey Mike, > > After some intensive testing it seemed that $user_id did not solve the > isue > > I hereby give the script to get the $user_id: > > // check if the user info validates the db > ($username and $password

RE: [PHP] Sessions question

2004-10-21 Thread Reinhart Viane
to be 'on' on the server (btw PHP Version 4.2.3) Thx for the advice, I hope I can sort it out soon Greetz Reinhart -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: donderdag 21 oktober 2004 15:47 To: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions question

Re: [PHP] Sessions question

2004-10-21 Thread Greg Donald
On Thu, 21 Oct 2004 16:06:37 +0200, Reinhart Viane <[EMAIL PROTECTED]> wrote: > I don't know if this can be caused by the fact register_globals seem to > be 'on' on the server (btw PHP Version 4.2.3) You can override that setting if the web server is running apache and AllowOverrides is set for yo

Re: [PHP] Sessions question

2004-10-21 Thread Mike Smith
ndreds of methods how several users log in, upload, log > out etc. so I can not test them all... :( > > It seems that sometimes the $_SESSION['user_id'] of the several users > get mixed and this may not happen. > > I don't know if this is a known bug or if there

Re: [PHP] Sessions question

2004-10-21 Thread raditha dissanayake
hi, Please don't send multiple posts, I just replied to your previous message thinking that it had not been answered, a little further down I come across this. It's very confusing to everyone. thanks -- Raditha Dissanayake.

Re: [PHP] Sessions question

2004-10-21 Thread Greg Donald
On Thu, 21 Oct 2004 10:14:47 -0400, Mike Smith <[EMAIL PROTECTED]> wrote: > How about changing How about learning to trim your posts? Thanks. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Sessions question

2004-10-21 Thread Curt Zirzow
* Thus wrote Reinhart Viane: > PHP Code > // Register some session variables! > session_register('userid'); > $_SESSION['userid'] = $userid; Do not use session_register with $_SESSION. http://php.net/session-register Curt -- Quoth the Raven, "Nevermore." -- PHP General Mailing

RE: [PHP] Sessions question

2004-10-21 Thread Reinhart Viane
I do not think this causes the problem. It's just redundant. Thx anyway -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: donderdag 21 oktober 2004 22:11 To: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions question * Thus wrote Reinhart Viane: > PHP Code >

RE: [PHP] Sessions question

2004-10-22 Thread Reinhart Viane
Owkee here goes: * Removing the foreach loop only supplied me with not being able to log in. But again I dunnot think this is the problem. The variables are stored correctly. At certain times the user_id sessions were just swapped... * Now I've seen that session_register('email');

RE: [PHP] sessions handling

2004-06-02 Thread Vincent DUPONT
Hi, I beleive that if both servers run the same hostname (www.foo.com) (cookie domain) and both session files are stored in the same place (/tmp), then the session is unique for 80 and 443 ports. you could simply test this be adding a $_SESSION['foo']='port80'; on the HTTP server instance and

RE: [PHP] sessions & cookies

2004-06-19 Thread Michael Sims
Scott Taylor wrote: > How exactly do sessions work? I've heard that if cookies are disabled > that a session will then pass it's variables in the url (through GET). > Yet when I manually disable cookies none of my pages work (because the > $_SESSION variables do not seem to be working). The varia

<    1   2   3   4   5   6   7   8   9   10   >