Re: [PHP] PHP Sessions

2003-01-21 Thread Tim Thorburn
Ok, here's what I've found: register_globals is ON however register_argc_argv is OFF on the server with problems. The server is a Sun Cobalt server running some form of Linux. My local machine that I work on is WinXP Pro using PHP 4.3.0, on this machine I've got register_globals set to ON and

Re: [PHP] PHP Sessions generates Segment Faults

2003-01-20 Thread Justin French
Hi, I had this problem a few weeks back. The host changed the sessions from 'mm' to 'files' in php.ini and restarted, and all was ok... not sure of the reasons behind the faults, but I had this EXACT problem (with standard session stuff). Justin on 21/01/03 2:29 AM, Blaster ([EMAIL

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
As long as session_start() is called BEFORE the included files, I can't see why not. Justin on 05/12/02 12:11 AM, Andy Kirk ([EMAIL PROTECTED]) wrote: Can anyone tell me if session variables should be available to scripts that are included into the main script? It appears to me that they

Re: [PHP] PHP Sessions

2002-12-04 Thread Ryan Gibson
May be a silly question but are u using a global statement in the include files, just a thought on 4/12/02 1:11 pm, Andy Kirk at [EMAIL PROTECTED] wrote: Can anyone tell me if session variables should be available to scripts that are included into the main script? It appears to me that

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not work, but: function myfunc() { global $_SESSION; return $_SESSION['something']; } will... J on 05/12/02 1:14 AM, Ryan Gibson ([EMAIL

RE: [PHP] PHP Sessions

2002-12-04 Thread Ford, Mike [LSS]
-Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 14:15 Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not work, but: Oh, yes it will! -- $_SESSION

Re: [PHP] PHP Sessions

2002-12-04 Thread Marco Tabini
Are you sure? I thought $_SESSION was a superglobal. Marco On Wed, 2002-12-04 at 09:15, Justin French wrote: Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not work, but: function myfunc()

RE: [PHP] PHP Sessions

2002-12-04 Thread Daniel Masson
$_SESSION IS SUPERGLOBAL Are you sure? I thought $_SESSION was a superglobal. Marco On Wed, 2002-12-04 at 09:15, Justin French wrote: Good point -- are the included files functions, or other stuff?? function myfunc() { return $_SESSION['something']; } will not

Re: [PHP] PHP Sessions

2002-12-04 Thread Stephen
Gibson' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 04, 2002 10:15 AM Subject: RE: [PHP] PHP Sessions $_SESSION IS SUPERGLOBAL Are you sure? I thought $_SESSION was a superglobal. Marco On Wed, 2002-12-04 at 09:15, Justin French wrote: Good point -- are the included

Re: [PHP] PHP Sessions

2002-12-04 Thread Justin French
Oops I screwed up :) Justin on 05/12/02 1:28 AM, Marco Tabini ([EMAIL PROTECTED]) wrote: Are you sure? I thought $_SESSION was a superglobal. Marco On Wed, 2002-12-04 at 09:15, Justin French wrote: Good point -- are the included files functions, or other stuff?? function

RE: [PHP] php sessions

2002-06-02 Thread John Holmes
You have to define the constants on each page. The second page doesn't know what S_USER, S_USER_ID, or S_USER_NAME are...unless you define them again. ---John Holmes... -Original Message- From: Michal Dvoracek [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 3:59 AM To: [EMAIL

Re: [PHP] php sessions

2002-06-02 Thread Alexander Skwar
Michal Dvoracek wrote: when creating new session: define('S_USER', 0); define('S_USER_ID', 0); define('S_USER_NAME', 1); session_start(); $_SESSION[S_USER][S_USER_ID] = 1; $_SESSION[S_USER][S_USER_NAME] = 'Michal'; Hm, you're defining a session variable called 0? Because PHP will translate

Re: [PHP] PHP Sessions Problem

2001-04-20 Thread Larry Hotchkiss
Thats very interesting. I normally use Netscape 4.7 myself, I find 6 to be a resource hog and just plain slow. I tried your site and as you pointed out, with 4.7 the registered var does not show. Yet, when I fire up IE all works fine. I guess what I find strange is that I am using

RE: [PHP] PHP Sessions Problem

2001-04-20 Thread Johnson, Kirk
I have also seen this problem with one of my sites, but only *occasionally*. I have no clue as to what the problem is. Anyone else have any ideas? Kirk -Original Message- From: Luke Muszkiewicz [mailto:[EMAIL PROTECTED]] Hey Folks: I am using PHP sessions in IE 5.5 and NN 6

Re: [PHP] PHP Sessions Problem

2001-04-20 Thread Felix Kronlage
On Fri, Apr 20, 2001 at 08:58:24AM -0600, Johnson, Kirk wrote: I have also seen this problem with one of my sites, but only *occasionally*. I have no clue as to what the problem is. Anyone else have any ideas? Maybe someone remembers my post about my session-problem. Pretty much the same

RE: [PHP] PHP Sessions Problem

2001-04-20 Thread Johnson, Kirk
Maybe someone remembers my post about my session-problem. Pretty much the same type. session gets registered just fine, but the var's are not being serialized() and put into the session-file. I never really relized that this only happens if I work at home, which is with a netscape 4.75

Re: [PHP] PHP Sessions Problem

2001-04-20 Thread Scott
I posted about this same problem over a year ago. I finally gave up and reverted back to PHP 3 techniques of 1)generating a sessid, 2)registering the session by storing the sessid and the variables in a mysql database and 3)passing the sessid in the url. This works like a charm. I'd be curious if

Re: [PHP] php sessions and classes

2001-03-26 Thread Chris Lee
yes this will work, are you passing the class as a session ? remember to declare the class BEFORE you call session_start() ie. ?php class test { //-note- ... } session_start(); ? do not have session_start before the class declaration. how do you like postgres? what

<    1   2