[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
you've already got that unique identifier. it's the username. the username will stay unique visit to visit, therefore you don't need to go against the design of the session id. the session id is not meant to keep uniqueness across multiple visits, only the current visit. are we/me

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: as long as your usernames are unique you should never have a problem. (assuming everything else works as planned.) it should... i want to use sessions for a login system and stuff too but i want it to check to see if the person is logged in before going to the login section... if

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: WHy do we need to have a session name for that? because eventually i want to take the user name (session name/variables/user info) and create a preferences section of the website im doing and that would require a constant session name from visit to visit Ummm... that's why you set a

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: [snip] If you give the session a custom name, then, yes, you'll have to use that name on every page. $name can be something that in an include file or a constant, etc, though. Again, you don't _have_ to give a name, though. There's no real advantage to using another name, though, as

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread John W. Holmes
Andy B wrote: you've already got that unique identifier. it's the username. the username will stay unique visit to visit, therefore you don't need to go against the design of the session id. the session id is not meant to keep uniqueness across multiple visits, only the current visit. are

Re: [PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread trlists
On 22 Mar 2004 Andy B wrote: so the theory is: if i require that the session be named after the persons login name there is probably 1 out of 2 million chances that it will mess up the names and get confused (specially if there are only a few users allowed)... If the login name is unique and

[PHP] PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Damon Abilock
I'm having a problem related to PHP sessions in a school computer lab environment. I have a script that uses sessions to keep track of a user and their work on the system. It is being used by a school in a computer lab in which the students just have terminals -- they all access the same server

[PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread memoimyself
case, then I don't believe there's anything that can be done. Erik On 16 Mar 2004 at 13:04, Damon Abilock wrote: I'm having a problem related to PHP sessions in a school computer lab environment. I have a script that uses sessions to keep track of a user and their work on the system

Re: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread trlists
On 16 Mar 2004 [EMAIL PROTECTED] wrote: Sessions have to do with requests being sent by browsers to the web server. Each time you close all the windows of your browser on your computer and start the browser again, a new session is started. I suspect that since all your users are

Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 11:28:04 AM, you wrote: tcc On 16 Mar 2004 [EMAIL PROTECTED] wrote: tcc I have had questions about this for a while. What is it about closing tcc and reopening the browser that PHP notices and that invalidates the tcc old session? tcc Also a comment ... I think

Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread trlists
On 17 Mar 2004 Tom Rogers wrote: The default lifetime for session cookies is until the browser is closed. Of course. slapping head You can run multiple sessions as long as they are to different domains I think. I am pretty sure PHP can only handle 1 session per client but you could

Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: Hmmm, I would contend that PHP, particularly running inside stateless HTTP, doesn't know one client from another except by the code you write that makes it recognize them You're exactly right. if you had a way to set multiple cookies (easy) and to know which

[PHP] Sessions

2004-03-16 Thread Will
Hello All, I am having a problem. When I log into a forum it says Page Cannot Be Displayed I looked at my logs and did not find anything. I did a search everywhere and found nothing. Any help would be appreciated, ~WIIL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Sessions

2004-03-16 Thread John W. Holmes
Will wrote: Hello All, I am having a problem. When I log into a forum it says Page Cannot Be Displayed I looked at my logs and did not find anything. I did a search everywhere and found nothing. As did your web server, apparently. :) So what page are you trying to load? It obviously doesn't

Re: [PHP] Sessions

2004-03-16 Thread Chris Shiflett
--- Will [EMAIL PROTECTED] wrote: I am having a problem. When I log into a forum it says Page Cannot Be Displayed I looked at my logs and did not find anything. Your immediate problem is that you're using IE. Use another browser, and you should get a more informative error message. Chris

RE: [PHP] Sessions

2004-03-16 Thread Will
It was a link problem!!! :) DUH What a dummy I am! :) ~WILL~ -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 11:38 PM To: Will Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions Will wrote: Hello All, I am having a problem. When I

[PHP] SESSIONS SESSIONS SESSIONS

2004-03-12 Thread Alberto García Gómez
Friends: I need a good example to create a session and navigate an entire site with this sessions. Also I need that sessions handle a three variables. __ Atte. Alberto García Gómez Administrador Nodo Atenas http://www.mtz.sld.cu/ Tel: 53-45-282212

Re: [PHP] SESSIONS SESSIONS SESSIONS

2004-03-12 Thread Jason Davidson
http://ca.php.net/manual/en/function.session-start.php =?iso-8859-1?Q?Alberto_Garc=EDa_G=F3mez?= [EMAIL PROTECTED] wrote: Friends: I need a good example to create a session and navigate an entire site with this sessions. Also I need that sessions handle a three variables.

[PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
Hi list :-) I'm using sessions to manage users, by using cookies to store the session. My question is, how do I make the session last _forever_? ATM the session lasts 'till the user closes the browser. Thanks -- I/O, I/O, It's off to disk I go, A bit or byte to read or write, I/O, I/O,

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 cannot

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

2004-03-09 Thread Richard Davey
Hello André, Tuesday, March 9, 2004, 11:41:04 PM, you wrote: AVL But my question is, since I don't deal with cookies directly (PHP does AVL that for me), 'cause I only have to deal with sessions, how can I change AVL the cookies produced by PHP? AVL atm I only session_start() and use the

Re: Re[2]: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
but since the cookie stores the session id, I thought I could keep that ID and bring it back. could you show me some code, or point me to some example? Thanks On Tue, 2004-03-09 at 23:48, Richard Davey wrote: Hello André, Tuesday, March 9, 2004, 11:41:04 PM, you wrote: AVL But my

Re[4]: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
Hello André, Tuesday, March 9, 2004, 11:53:15 PM, you wrote: AVL but since the cookie stores the session id, I thought I could keep that AVL ID and bring it back. You could, but PHP will automatically clear up expired sessions as part of its garbage collection routine, which means its entirely

Re: Re[4]: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
I'll try to find another way then. Thanks for the replies On Wed, 2004-03-10 at 00:00, Richard Davey wrote: Hello André, Tuesday, March 9, 2004, 11:53:15 PM, you wrote: AVL but since the cookie stores the session id, I thought I could keep that AVL ID and bring it back. You could,

RE: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread Ford, Mike [LSS]
On 05 March 2004 03:33, Paul Higgins wrote: When I do: print_r($_COOKIE); I get the following: Array ( [PHPSESSID] = 11781ce29c68ca7ef563110f37e43f38 ) Does that mean its setting the Cookie? Yes. Cheers! Mike - Mike

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread Jason Wong
On Friday 05 March 2004 13:05, Paul Higgins wrote: When I thought about what the compay really told me...it didn't make sense. All I know is that that cookie will not save on my WinXP box, but it will save on my Linux box. As sending cookies is pretty much a generic procedure which is not

RE: [PHP] PHP Sessions - Cookies Not Saving

2004-03-05 Thread electroteque
but it will save on my Linux box. As sending cookies is pretty much a generic procedure which is not platform dependent it would suggest that your WinXP box is broken (needless to say I'm assuming that you have already ensured that your browser is configured to accept cookies). Have you

[PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
Hi everyone, I'm trying to create a session with PHP. I'm using the following code: ?php session_start( ); print( session_id( ) ); print( 'HTML'); print( 'BODY' ); print( ' a href = http://www.mysite.com/shopping_cart/Test2.php;Here/a' ); print( '/BODY' ); print( '/HTML'

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
Are the hosts u looking at the same ? Like is it the very same link ? Check on the XP box if you have cookies disabled, u can always check if the session is being stored on the server too, look in /tmp first. Try a print_r ($_COOKIE); aswell. Hi everyone, I'm trying to create a session with

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
to Medium. Thanks, Paul From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST) Are the hosts u looking at the same ? Like is it the very same link ? Check on the XP box if you have cookies disabled, u can always

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
] Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST) Are the hosts u looking at the same ? Like is it the very same link ? Check on the XP box if you have cookies disabled, u can always check if the session is being stored on the server too, look in /tmp first

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
wasted. Thanks for the help though...it was much appreciated! Paul From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 14:25:53 +1100 (EST) Are the hosts u looking at the same ? Like is it the very same link ? Check

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
If there is something in $_COOKIE, what does that mean? That there is a cookie somewhere? Or is it appending the Session ID to the URL? Paul From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread daniel
From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST) Is it a non default /tmp ? If so it should be in php.ini or u have to set where it is with an ini_set , hope that helps

Re: [PHP] PHP Sessions - Cookies Not Saving

2004-03-04 Thread Paul Higgins
] PHP Sessions - Cookies Not Saving Date: Fri, 5 Mar 2004 15:24:32 +1100 (EST) Is it a non default /tmp ? If so it should be in php.ini or u have to set where it is with an ini_set , hope that helps. AAAGGGH!! I asked my hosting company where

[PHP] PHP Sessions and Cookies

2004-03-03 Thread Paul Higgins
I have a couple of questions regarding sessions and cookies: 1) Is there a way to append information to a cookie? I have read that it is, but I have also read many problems. Is there any particular way to do this? I ask this because cookies are being generated by two different types of

[PHP] Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
Hello, I am a little desperate right now since I have tried to solve this problem for 3-4 days now. I have developed a site that uses sessions for user authentication and data storage between page access. The development server is Apache1.3.24/MySQL4.1.0/PHP4.3.3/Win XP Pro The release server is

Re: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread Richard Davey
Hello Puiu, Tuesday, March 2, 2004, 11:13:07 AM, you wrote: PH The site is working just fine on the development server, but when PH uploading on release server it keeps losing session data and the PH users are logged out of their account in a Some things to try/think about: 1. Are your

RE: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread electroteque
all i can think of here, you could be calling start_session twice in the same page ? also init set the session timeout to an hour or so -Original Message- From: Puiu Hrenciuc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 10:13 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions

Re: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
1. No. If that would be the problem i think that sessions would expire after the same period of time and not randomly , right ? 2. The site consists in a single page (index.php) that includes the subpages as needed. The session_start() is at the begining of the file. If this would

Re: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
think of here, you could be calling start_session twice in the same page ? also init set the session timeout to an hour or so -Original Message- From: Puiu Hrenciuc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 10:13 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions, sessions

[PHP] sessions timeout

2004-03-02 Thread André Ventura Lemos
Hi list :-) I'm using sessions to manage users, by using cookies to store the session. My question is, how do I make the session last _forever_? ATM the session lasts 'till the user closes the browser. Thanks -- I/O, I/O, It's off to disk I go, A bit or byte to read or write, I/O, I/O,

Re: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread Michal Migurski
I am a little desperate right now since I have tried to solve this problem for 3-4 days now. I have developed a site that uses sessions for user authentication and data storage between page access. The development server is Apache1.3.24/MySQL4.1.0/PHP4.3.3/Win XP Pro The release server is

[PHP] sessions timeout

2004-03-02 Thread André Ventura Lemos
Hi list :-) I'm using sessions to manage users, by using cookies to store the session. My question is, how do I make the session last _forever_? ATM the session lasts 'till the user closes the browser. Thanks -- I/O, I/O, It's off to disk I go, A bit or byte to read or write, I/O, I/O,

[PHP] PHP Sessions

2004-02-29 Thread Paul Higgins
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 _ Take off on a romantic weekend or a family adventure to these great U.S

[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] PHP Sessions

2004-02-29 Thread Tom Rogers
Hi, Monday, March 1, 2004, 3:04:13 AM, you wrote: PH Hello everyone, PH I'm beginning to experiment with PHP sessions. I was wondering if it is PH possible to place objects into the session? PH Thanks, PH Paul PH _ PH Take off

[PHP] Sessions

2004-02-17 Thread php-general
Have a questions about sessions. In building a simple app do I have to include the session id in the url string or in a hidden tag? or does it normally track it by cookies and so I dont have to call it on every page? thoughts on best way to do this

[PHP] Sessions on Win2k

2004-02-11 Thread Donpro
Hi, I've searched the archives and note that many have probelms using session on a Win2K server. I am getting a Undefined index: sessions in D:\inetpub\mydomain\www\forms\formmail\formmail.php on line 768 error. Line 768 is: session_start(); It works Ok on Linux; is there any special

RE: [PHP] Sessions on Win2k

2004-02-11 Thread Alex Hogan
Subject: [PHP] Sessions on Win2k Hi, I've searched the archives and note that many have probelms using session on a Win2K server. I am getting a Undefined index: sessions in D:\inetpub\mydomain\www\forms\formmail\formmail.php on line 768 error. Line 768 is: session_start(); It works

RE: [PHP] Sessions on Win2k

2004-02-11 Thread Ford, Mike [LSS]
On 11 February 2004 16:39, Alex Hogan contributed these pearls of wisdom: Session_start() has to be the first thing at the top of the page before anything else. Even header info. Er, no. session_start() itself generates headers, so it doesn't matter whether it goes before or after other

RE: [PHP] Sessions on Win2k

2004-02-11 Thread Alex Hogan
] Sent: Wednesday, February 11, 2004 11:00 AM To: 'Alex Hogan'; php list Subject: RE: [PHP] Sessions on Win2k On 11 February 2004 16:39, Alex Hogan contributed these pearls of wisdom: Session_start() has to be the first thing at the top of the page before anything else. Even header info

[PHP] Sessions vs. MySQL records?

2004-02-03 Thread Brian Dunning
I have an application where I want users to only be allowed 5 searches per day unless they create an account. There may not be a simple answer to this, but in general, would it be preferred to do this with 24-hour session variables, or by writing a MySQL record for each visitor with the date

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Jason Wong
On Wednesday 04 February 2004 00:05, Brian Dunning wrote: I have an application where I want users to only be allowed 5 searches per day unless they create an account. Unless you require that a user logs in before they can perform a search then there is no meaningful way to track how many

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Raditha Dissanayake
Hi, By sessions i assume you mean cookies (session information can be stored in other places such as a mysql database). If you do store the information in a cookie, your visitors can easily delete the cooky and get past your protection mechanism. Having said that opting for a mysql table that

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Adam Bregenzer
On Tue, 2004-02-03 at 11:05, Brian Dunning wrote: I have an application where I want users to only be allowed 5 searches per day unless they create an account. There may not be a simple answer to this, but in general, would it be preferred to do this with 24-hour session variables, or by

RE: [PHP] Sessions not working.

2004-01-29 Thread Gryffyn, Trevor
[mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 7:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions not working. Pulling my hair out here. I've got an IIS5 webserver running a php website just fine. I created another web for a dev version of the first website. Installed

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
] Subject: RE: [PHP] Sessions not working. Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd check. If you have it set

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
: [PHP] Sessions not working. Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd check. If you have it set to =1

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
setup? Thanks, jeff -Original Message- From: Jeff McKeon Sent: Thursday, January 29, 2004 11:49 AM To: Gryffyn, Trevor; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Further info. If I echo the session_id() onto the page I do get an id returned. So (correct me if I'm

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
, January 29, 2004 2:48 PM To: Jeff McKeon; Gryffyn, Trevor; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Ok, there seems to be some confusion about my setup so here it is again.. I have 1 physical server runing win2k server with IIS-5 I have 4 virtual web servers configured in IIS-5

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
server setup? Thanks, jeff -Original Message- From: Jeff McKeon Sent: Thursday, January 29, 2004 11:49 AM To: Gryffyn, Trevor; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Further info. If I echo the session_id() onto the page I do get an id returned. So (correct me

Re: [PHP] Sessions not working.

2004-01-29 Thread John Nichel
Jeff McKeon wrote: Figured it out, I think. PHP doesn't like the underscore in my website name. http://site_dev.foo.com/ doesn't work but http://192.168.2.50/ does. If I rename the site in DNS to siteDEV.foo.com then it works fine. Any ideas why? snip The underscore (_) is not a valid

RE: [PHP] Sessions not working.

2004-01-29 Thread Chris W. Parker
Jas mailto:[EMAIL PROTECTED] on Thursday, January 29, 2004 1:06 PM said: [snipped about 425 useless lines] Well in that case do a dump_vars($_session[],$_session[]) for each session variable you register and see if anything is listed. Jas C'mon dude. Some of use are on dialup (not me

Re: [PHP] Sessions not working.

2004-01-29 Thread John Nichel
Chris W. Parker wrote: C'mon dude. Some of use are on dialup (not me now, but when I get home) and that email REALLY needed to be trimmed. Chris. I remember back in the day We used to do stuff like this. To the people who were

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
John Nichel wrote: Chris W. Parker wrote: C'mon dude. Some of use are on dialup (not me now, but when I get home) and that email REALLY needed to be trimmed. Chris. I remember back in the day We used to do stuff like this. To

Re: [PHP] Sessions not working.

2004-01-29 Thread Daniel Clark
That's GREAT ! :-) I remember back in the day BIG SNIP Sorry, couldn't resist. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions not working.

2004-01-28 Thread Jeff McKeon
Pulling my hair out here. I've got an IIS5 webserver running a php website just fine. I created another web for a dev version of the first website. Installed PHP ect... When I load up the old websites files on the new site sessions won't work on the new site. For some reason on the new site's

[PHP] sessions not registering inside a function.

2004-01-23 Thread Jarratt Ingram
Hello All, I have created a login system, which works as expected on php 4.2. When i was asked to move it onto an older server using 4.0.6, the system stopped registering sessions. main page: ? session_start(); include('PROC_Login.php'); login($username,$password); PROC_Login.php:

Re: [PHP] sessions not registering inside a function.

2004-01-23 Thread John W. Holmes
From: Jarratt Ingram [EMAIL PROTECTED] I have created a login system, which works as expected on php 4.2. When i was asked to move it onto an older server using 4.0.6, the system stopped registering sessions. main page: ? session_start(); function login($username, $password){ global

Re: [PHP] sessions not registering inside a function.

2004-01-23 Thread Jarratt Ingram
Thank you John, I did manage to get it working by calling global $AuthUser after i ran the function on the main page and it seems to have resolved the issue. have a good weekend J On Fri, 2004-01-23 at 16:38, John W. Holmes wrote: From: Jarratt Ingram [EMAIL PROTECTED] I have created a

[PHP] Sessions: strange behaviour in 4.3.3 ?

2004-01-16 Thread Dino Tsoumakis
Hi, I found a strange behavior in session handling functions after an update to PHP 4.3.3. I wrote a simple test class, which can be viewed here: http://www.serv-int.de/class.session.txt In PHP 4.2.2 the output was something like that: open:

Re: [PHP] Sessions: strange behaviour in 4.3.3 ?

2004-01-16 Thread Chris Shiflett
--- Dino Tsoumakis [EMAIL PROTECTED] wrote: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at XX/class.session.php:61) in XX/class.session.php on line 38 You need to either put session_start() prior to any output (my preference) or

Re: [PHP] Sessions: strange behaviour in 4.3.3 ?

2004-01-16 Thread Dino Tsoumakis
Chris Shiflett [EMAIL PROTECTED] wrote news:[EMAIL PROTECTED] --- Dino Tsoumakis [EMAIL PROTECTED] wrote: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at XX/class.session.php:61) in XX/class.session.php on line 38 You need to

Re: [PHP] Sessions: strange behaviour in 4.3.3 ?

2004-01-16 Thread Chris Shiflett
--- Dino Tsoumakis [EMAIL PROTECTED] wrote: If you hve a close look at the code http://www.serv-int.de/class.session.txt you will find the session_start() in the constructor of the class prior to any output. This is apparently not the case, else this error message would not appear. The thing

[PHP] sessions and virtual sites

2004-01-05 Thread Matthew Weier O'Phinney
I've got a problem with sessions and Apache virtual sites. My specs: PHP 4.3.2 on Apache 1.3.27, operating on a Red Hat 8 server with kernel 2.4.20 with SMP. I've developed a simple event calendar that uses sessions in two different instances. The first is when paging through search results; I

[PHP] sessions problem

2003-12-20 Thread Nitin
hi all, i'm just starting to use sessions. i've a problem, i started session and assigned variables to $HTTP_SESSION_VARS i can very well see these vars in my next script, but i need to get back to first script for some working, and strangely i dont find these vars there. any help or

RE: [PHP] sessions problem

2003-12-20 Thread Larry Brown
: [PHP] sessions problem hi all, i'm just starting to use sessions. i've a problem, i started session and assigned variables to $HTTP_SESSION_VARS i can very well see these vars in my next script, but i need to get back to first script for some working, and strangely i dont find these vars

[PHP] sessions simply don't work

2003-12-19 Thread ken lee
I'm getting this message all the the time I try to start a session with session_start. Cannot send session cookie - headers already sent It's the first line of code in the file. I'm even getting the error with a single session_start() function on its own in a file. It fails on Apache on my

RE: [PHP] sessions simply don't work

2003-12-19 Thread jon
Maybe you should post the first few lines of your code... -- jon -Original Message- From: ken lee [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:18 PM To: [EMAIL PROTECTED] Subject: [PHP] sessions simply don't work I'm getting this message all the the time I try

Re: [PHP] sessions simply don't work

2003-12-19 Thread Brad Pauly
On Fri, 2003-12-19 at 13:18, ken lee wrote: I'm getting this message all the the time I try to start a session with session_start. Cannot send session cookie - headers already sent It's the first line of code in the file. I'm even getting the error with a single session_start() function

Re: [PHP] sessions simply don't work

2003-12-19 Thread Peter Walter
Ken, I had exactly the same problem and it really stumped me for a while. Check your php start and end tags carefully - even a single space before or after the ?php ? tags (before the session_start() ) will cause this problem. Check any included files before the session_start(). Peter Brad

[PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread Robert Sossomon
Hey guys and gals, I am working on a shopping cart and using some code to write it from 2 temp databases to a full end databases (which will then be used via PERL to send to an archaic order system) but right now I need to come up with a way to clear their current session ID after finalizing the

Re: [PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread Lowell Allen
Hey guys and gals, I am working on a shopping cart and using some code to write it from 2 temp databases to a full end databases (which will then be used via PERL to send to an archaic order system) but right now I need to come up with a way to clear their current session ID after

Re: [PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread John W. Holmes
Robert Sossomon wrote: Hey guys and gals, I am working on a shopping cart and using some code to write it from 2 temp databases to a full end databases (which will then be used via PERL to send to an archaic order system) but right now I need to come up with a way to clear their current session

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Thanks again but here's what happens when I run that. The form box appears. I select an option. I hit submit. The page that loads says: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\session_yyy.php on line 13 I then hit the link: Back to content page. The form box

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread John W. Holmes
Anthony Ritter wrote: Thanks again but here's what happens when I run that. The form box appears. I select an option. I hit submit. The page that loads says: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\session_yyy.php on line 13 I then hit the link: Back to content page.

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Sure. Here it is. There are three scripts. session_1.php: the original form script. session_1a.php: a revised script with a conditional else. session_2.php: the receiving script for the session array variable. Running script 1a and 2 works fine. However the original script 1 and 2 gives me a

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Additinally, upon looking at the session files in: C:/apache/tmp: I get from session file from script session_1a.php: products|s:23:a:1:{i:0;s:6:Tardis;}; ... However, looking at session file from script session_1.php: I get: products|s:2:N;; -- Anthony Ritter [EMAIL

[PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Anthony Ritter
Using mysql, apache and win98 The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. Page 338-339 (hour 16). After choosing my selections in the form box and hitting submit I get: ... Warning: Invalid argument supplied for foreach() in

RE: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Giz
Try changing references to $_SESSION[products] to $_SESSION['products'] -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:49 AM To: [EMAIL PROTECTED] Subject: [PHP] =sessions / J. Meloni Textbook= Using mysql, apache and win98

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Burhan Khalid
Anthony Ritter wrote: Using mysql, apache and win98 The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. Page 338-339 (hour 16). After choosing my selections in the form box and hitting submit I get: ... Warning: Invalid argument supplied for foreach() in

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread CPT John W. Holmes
Anthony Ritter wrote: The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. [snip] if (isset($_POST[form_products])) { if (!empty($_SESSION[products])) { $products = array_unique( array_merge(unserialize($_SESSION[products]), $_POST[form_products]));

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Anthony Ritter
Thanks John and others. I'm using the script and no values show up in the page: session_bb.php after I submit the values in the select form. If somebody would like to test both scripts (session_aa.php and session_bb.php) and get back to me I would be grateful. As I said, these were from her

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread John W. Holmes
Anthony Ritter wrote: I'm using the script and no values show up in the page: session_bb.php after I submit the values in the select form. If somebody would like to test both scripts (session_aa.php and session_bb.php) and get back to me I would be grateful. I think you're using a crappy book...

[PHP] Sessions and AOL?

2003-11-16 Thread R. Van Tassel
Hi everyone. I have a problem with a website that I don't understand. It seems that people using AOL can't see certain sections of this website. It is a directory section where a drop-down menu exists, you select the section you want to see and the page reloads with the information. The only

Re: [PHP] Sessions and AOL?

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 01:54 pm, R. Van Tassel wrote: Hi everyone. I have a problem with a website that I don't understand. It seems that people using AOL can't see certain sections of this website. It is a directory section where a drop-down menu exists, you select the section you want

Re: [PHP] Sessions within new windows

2003-11-14 Thread Lucian Cozma
Olinux [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings?

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