[PHP] Session Variables

2002-03-25 Thread Chad Gilmer
Hi There, I am a beginner to PHP and I am tring to use session variables on my site. I am trying to use Session Variables in PHP on the iPLANIT.tv site When I use the following code: I get the following error Warning: Cannot send session cookie - headers already sent by (output started at /

[PHP] session variables

2002-04-04 Thread Lee, Ford
I seem to have configuration problemsi just can't seem to get session variables written to in files under win2000, NTFS w/ Apache and PHP..i've already done everything from session_start() on every page to making var globalanybody can help?? thanksbtw, i got the same system on a L

[PHP] Session Variables

2002-04-16 Thread Phil Powell
I understand the concept of session variables, so I want to know the best methodology of approaching this: 1) HTML redirect to PHP page 2) PHP page looks for session a) If found, show some stuff b) If not found, prompt user for username and password 3) If no session, prompt user for username

[PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
I am designing a form using sessions in which the user inputs their details on page 1 and after submitting they are directed to page 2 for confirmation. They then have the option of editing their input (ie they are returned to page 1) where their previous input is reflected in the form fields by v

[PHP] Session-variables

2001-02-05 Thread spider
Is it ok to mail questions to this list? If so; Is there something similar like the "session variables" of ASP in PHP, or do one have to use (client-side) cookies instead? /thanks/me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

[PHP] Session Variables

2001-07-25 Thread Jason Bell
Is there anyway to prevent session variables from being overwritten by a get string? I'm wanting to use sessions for security/login, but I'm finding that I can bypass this very easily. For example, I want to hide menu items based on security level, so I use something like this: if ($HTTP_SESSI

[PHP] session variables

2001-04-10 Thread george
I am using a session to store a variable so when someone enters something into a field the persons username(which is stored in the session) is also entered into anoter field. The problem is that it only works the first time, so how can I make the session last for a required length of time, so th

[PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
When does a session variable become available? Immediately after the session_register command or after the script ends? And if the commands are as follows: session_start(); session_register("hello"); $hello=3; will the session variable $hello be set to 3 or do I have to add another session_regi

[PHP] Session variables

2001-09-07 Thread Ing. Lalka Peter
Hi! I want to know how many users are currently online at my site. How can I get this info from php? Can I? Thank you for answer. Barno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] Session Variables

2002-03-25 Thread Rick Emery
it means you've already output some HTML or a blank line -Original Message- From: Chad Gilmer [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Session Variables Hi There, I am a beginner to PHP and I am tring to use se

Re: [PHP] session variables

2002-04-04 Thread Wolfram Kriesing
On Thursday 04 April 2002 19:15, Lee, Ford wrote: > I seem to have configuration problemsi just can't seem to get > session variables written to in files under win2000, NTFS w/ Apache and > PHP..i've already done everything from session_start() on every page > to making var globalanybo

RE: [PHP] session variables

2002-04-04 Thread Lee, Ford
PM To: Lee, Ford; [EMAIL PROTECTED] Subject: Re: [PHP] session variables On Thursday 04 April 2002 19:15, Lee, Ford wrote: > I seem to have configuration problemsi just can't seem to get > session variables written to in files under win2000, NTFS w/ Apache and > PHP..i've

RE: [PHP] session variables

2002-04-04 Thread Lee, Ford
1 AND it still doesn't work!!! Anyone who used 4.2.0RC1 came across this problem and made it work? -Original Message- From: SHEETS,JASON (Non-HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 12:43 PM To: Lee, Ford Subject: RE: [PHP] session variables This isn

RE: [PHP] session variables

2002-04-04 Thread heinisch
At 04.04.2002 13:18, you wrote: >Apparently under the bug report database for bug number 16043, my >exactly problem was described. According to the PHP team, this >windows/apache1.3.23/php4.1.2 session not writing to file bug has been >fixed in the 4.2.0RC1 binaries. I've patched my php4apache.

RE: [PHP] Session Variables

2002-04-16 Thread .ben
. is it just me or is the reply-to on this list a little odd? > -Original Message- > From: Phil Powell [mailto:[EMAIL PROTECTED]] > Sent: 16 April 2002 22:50 > To: [EMAIL PROTECTED] > Subject: [PHP] Session Variables > > > I understand the concept of session varia

RE: [PHP] Session variables

2002-07-08 Thread Rudolf Visagie
("MyList", $OptionValue, $Option, $MyList) ?> Regards Rudolf Visagie Principal Software Developer Digital Healthcare Solutions <mailto:[EMAIL PROTECTED]> Tel: 011 2655478 Cell: 082 895 1598 -Original Message- From: Steve Fitzgerald [mai

Re: [PHP] Session variables

2002-07-08 Thread Justin French
> > > > > > Obviously this is labourios to code... you can do this a lot smarter/quicker with an array for the entire select box... have an array of days, and do a foreach loop which writes the all the options for you, with the if statements, etc etc. By the way, this h

Re: [PHP] Session variables

2002-07-08 Thread Steve Fitzgerald
Thanks Justin, your solution is spot-on! Regards Steve Justin French wrote: > > ?>> > > > ?>> > } ?>> > ?>> > > > > > Obviously this is labourios to code... you can do this a lot smarter/quicker > with an array for the entire select box... have an array of days, and

Re: [PHP] Session-variables

2001-02-05 Thread Hardy Merrill
Look at http://www.php.net/manual/en/html/ref.session.html HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com spider [[EMAIL PROTECTED]] wrote: > Is it ok to mail questions to this list? If so; > > Is there something similar like the "session variables"

RE: [PHP] Session Variables

2001-07-25 Thread Johnson, Kirk
> Is there anyway to prevent session variables from being > overwritten by a get string? PHP will do this automatically *if* you initialize your session variables to *anything* as soon as you register them. For example, session_register("sess_auth"); $sess_auth = ""; If you do this, then sessi

RE: [PHP] Session Variables

2001-07-25 Thread Sascha Schumann
On Wed, 25 Jul 2001, Johnson, Kirk wrote: > > Is there anyway to prevent session variables from being > > overwritten by a get string? > > PHP will do this automatically *if* you initialize your session variables to > *anything* as soon as you register them. For example, > > session_register("ses

Re: [PHP] Session Variables

2001-07-25 Thread Jason Bell
om: "Sascha Schumann" <[EMAIL PROTECTED]> To: "Johnson, Kirk" <[EMAIL PROTECTED]> Cc: "PHP Users" <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 2:10 PM Subject: RE: [PHP] Session Variables > On Wed, 25 Jul 2001, Johnson, Kirk wrote: > > >

Re: [PHP] session variables

2001-04-10 Thread mailing_list
> I am using a session to store a variable so when someone enters something > into a field the persons username(which is stored in the session) is also > entered into anoter field. > The problem is that it only works the first time, so how can I make the > session last for a required length of t

Re: [PHP] session variables

2001-04-10 Thread george
I tried using a cookie I still had the same problem that it worked first time but even if you stayed on the page and put a sencond entry in it would not work, George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] session variables

2001-04-10 Thread mailing_list
> I tried using a cookie I still had the same problem that it worked first > time but even if you stayed on the page and put a sencond entry in it > would > not work, then you: set the cookie incorrectly overwrite/delete the cookie by mistake your browser does not support cookies ... read http

[PHP] Session Variables & Cookies

2001-04-17 Thread Bob Clingan
I've tried to follow the example in the online manual, but and I believe my session/cookie variables are being stored. Is there some specific way I need to call them? Can anyone provide a brief example? Thanks. --Bob -- +---+ | Bo

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
> -Original Message- > From: Nikhil Goyal [mailto:[EMAIL PROTECTED]] > When does a session variable become available? Immediately after the > session_register command or after the script ends? Immediately after it is assigned. > And if the commands are as follows: > > session_start();

Re: [PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
Funnily - doesn't work for me. Here's what I got: Script #1 #!/usr/local/bin/php Script #2 #!/usr/local/bin/php If I start script#1 (and it sleep()s), wait 10 seconds, then launch script #2 in a separate browser window, script #2 returns empty. However once the sleep() is completed and I refr

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
session values from script 1 before they can be retrieved by script 2. Kirk > -Original Message- > From: Nikhil Goyal [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 03, 2001 2:41 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Session Variables > > > Funni

Re: [PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
tore the > session values from script 1 before they can be retrieved by script 2. > > Kirk > > > -Original Message- > > From: Nikhil Goyal [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 03, 2001 2:41 PM > > To: [EMAIL PROTECTED] > > Subject:

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
Goyal [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 03, 2001 2:51 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Session Variables > > > so the session variable is set only when the script ends? I > thought you > indicated that they were set immediately... > > Tha

[PHP] session variables and unset

2002-04-10 Thread Valdas Andrulis
Hello, I have 3 scripts: ## i2.php ## i.php ## i1.php When I open http://host/i2.php on my browser I get 0, though I expect it to be 4. If I uncomment session_unregister("counter"); I get 4 as expected. PHP version 4.1.2. Anyone can explain this behavior? Also can anyone try this with sa

[PHP] session variables and classes?

2002-05-01 Thread John Ngo
does anyone know if a session variable set within a class is accessible outside the class and by other pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session variables in OOP....

2002-06-14 Thread Wilbert Enserink
Hi all, I'm busy building a site which uses OOP. Several classes are used to constuct different sections of the final page to be displayed. The overall class is called class.basepage.php This is the page which outputs HTML and calls other classes to construct other parts of the page. Now I h

Re[2]: [PHP] Session variables

2002-07-08 Thread Michal Dvoracek
> > ?>> > > > ?>> > } ?>> > ?>> > > > better is (IMHO): > > Regards, Michal Dvoracek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session variables in functions....

2001-11-20 Thread wim van houts
Somebody knows why I cannot reach the $HTTP_SESSION_VARS in a function For example, why does this not output the "en-US" string three times: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Session variables and register_global

2001-04-04 Thread Niklas Neumann
Hello, is it meant that session_register("test"); $GLOBALS['HTTP_SESSION_VARS']['test'] = 'Hello World!'; does not work properly (session variable test is not initialized with the value 'Hello World!') if register_globals is turned on, but when it is turned off? Best regards Niklas -- P

[PHP] Session Variables and Redirecting

2001-07-13 Thread Johnny Nguyen
I've done this on other platforms ASP,Cold Fusion, but I need to know what's the best way to do it on PHP. 1. grab username and password from POST vars. 2. select count(*) from users where username = '$username' and password='$password'... something along these lines 3. if that user exists and pa

[PHP] Session variables - Users online

2001-09-07 Thread Aniceto Lopez
put this code in the home web page $conn user online"; } else { echo"$conn users online"; } ?> and create this table in you db to hold the necesary values # # Table structure for table 'uonline' # CREATE TABLE `uonline` ( `caduc` int(15) NOT NULL default '0', `ip` varchar(40) NOT NUL

RE: [PHP] session variables and unset

2002-04-10 Thread Johnson, Kirk
I get '4', as expected, on v.4.0.6. Kirk > -Original Message- > From: Valdas Andrulis [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 10, 2002 3:43 AM > To: [EMAIL PROTECTED] > Subject: [PHP] session variables and unset > > > Hello, >

RE: [PHP] session variables and classes?

2002-05-01 Thread Jay Blanchard
[snip] does anyone know if a session variable set within a class is accessible outside the class and by other pages? [/snip] I have not tested this, but I do use sessions quite a bit. All session variables are registered as global variables and therefore should be available to other processes and

Re: [PHP] session variables in OOP....

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Wilbert Enserink declared > I hope you understand my problem and have some tips for me. Below is some code >snippets I'm using: Actually it's a little tricky to understand ;-) Have you considered output buffering? - -- Nick Wilson

Re: [PHP] session variables in OOP....

2002-06-14 Thread W. Enserink
le"; ob_get_contents();//show the buffer ob_end_flush() ;//clear the buffer - Original Message - From: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 1:59 PM Subject: Re: [PHP]

Re: [PHP] session variables in OOP....

2002-06-14 Thread 1LT John W. Holmes
sions, whatever, at any point. Or you can use output buffering... ---John Holmes... - Original Message - From: "Wilbert Enserink" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 7:44 AM Subject: [PHP] session variables in OOP Hi all, I&#

Re: [PHP] session variables in OOP....

2002-06-14 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then W. Enserink declared > Nick: thx for the tip, it removed the error, and might further be a good > idea: except: > do you know if I can declare session variables and use them in between the > output buffer statements > like this: (i tri

Re: Re[2]: [PHP] Session variables

2002-07-08 Thread BB
and to bring it up another level: > > :oP "Michal Dvoracek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > ?>> > > > > > > ?>> > > > } ?>> > > > ?>> > > > > > > > better is (IMHO): > > > > > > Regards, > Michal Dvoracek

RE: [PHP] Session variables and register_global

2001-04-04 Thread Johnson, Kirk
> -Original Message- > From: Niklas Neumann [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 04, 2001 3:20 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Session variables and register_global > > session_register("test"); > $GLOBALS['HTT

RE: [PHP] Session Variables and Redirecting

2001-07-13 Thread Johnson, Kirk
d as below, instead of using the $HTTP_SESSION_VARS array: $someflag = "somevalue"; $failedattempts++; Kirk > -Original Message- > From: Johnny Nguyen [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 13, 2001 12:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Session Var

[PHP] session variables between http and https servers.

2002-04-10 Thread Keith Posehn
Okay, here is my dilemma: I have one page, (non-secure), which sets session variables for the users address, items, prices, etc. I have the next page which is secure, and cannot get the session variables from the previous page. Is there a way to pass the variables between the secure and non-secur

Re: [PHP] session variables between http and https servers.

2002-04-10 Thread heinisch
At 10.04.2002 15:56, you wrote: >Okay, here is my dilemma: > >I have one page, (non-secure), which sets session variables for the users >address, items, prices, etc. I have the next page which is secure, and >cannot get the session variables from the previous page. Is there a way to >pass the var

[PHP] session variables and page interrupt via a refresh

2001-07-03 Thread Johnson, Kirk
Hope someone can help on this one. Say you have a FORM processing page that does lots of stuff, so it takes many seconds to execute. Say the user gets impatient and hits the Refresh button while the processing page is only half completed. Here's the question: do any changes to session variables t