Working with storing and reusing session variables.
If I use t1.php to generate a form, and the form
calls t2.php, the session vars are available.
If upgrade t1.php to recognize if it is the first
time it has been called versus the second time
e.g.
if (isset($some_session_var)) {
I am using session variables throughout an application, and every time I
try to log in as someone else after the first time I've logged in, it
uses the userid of the first person that logged in. I know the session
has to be destroyed or something, so I wanted to make a logoff page, but
it is not
on 4/6/03 10:39 PM, Alexa Kirk at [EMAIL PROTECTED] appended the following bits
to my mbox:
I am using session variables throughout an application, and every time I
try to log in as someone else after the first time I've logged in, it
uses the userid of the first person that logged in. I know
I am making a section on a web site which requires that visitors log-in.
Log-in, password, etc are in an MySQL table. I am using (via a web host) PHP
4.2.2 with global variables turned off. Until now, I have worked with a
different host in which global variables were switched on.
The way it works
[sorry for the incomplete posting of a couple moments ago. I hit ctl
something or other and outlook fired off the e-mail against my wishes!]
I am making a section on a web site which requires that visitors log-in.
Log-in, password, etc are in an MySQL table. I am using (via a web host) PHP
4.2.2
['verified'])) {
// push user back to login page
header('Location: http://mysite/index.php');
exit();
}
?
HTH
Rich
-Original Message-
From: Baumgartner Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 11:20
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] Session
Try changing your code to
if ($_SESSION['verified'] != yes){
I think that's the problem
Nick
-Original Message-
From: Baumgartner Jeffrey [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 11:20
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] Session variables when global variables
I have a question:
I have a site, http://www.darkrpg.ionichost.com, and
htp://www.mail.ionichost.com. I'm trying to find a way of passing the
session varible from darkrpg to mail that way they need not log in again.
Is it possiable with out cookies? And another question i have is on
kevin myers [EMAIL PROTECTED] wrote... :
I have a question:
I have a site, http://www.darkrpg.ionichost.com, and
htp://www.mail.ionichost.com. I'm trying to find a way of passing the
session varible from darkrpg to mail that way they need not log in again.
Is it possiable with out
Here are the results:
is_array():
gettype():string
strlen():5
-Original Message-
From: Peter Beckman [mailto:beckman;purplecow.com]
Sent: Wednesday, October 30, 2002 8:57 AM
To: Ryan Neudorf
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Session variables and arrays
On Wed, 30
-Original Message-
From: Peter Beckman [mailto:beckman;purplecow.com]
Sent: Wednesday, October 30, 2002 8:57 AM
To: Ryan Neudorf
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Session variables and arrays
On Wed, 30 Oct 2002, Ryan Neudorf wrote:
Ok. The categories are coming from
I'm having a problem with session variables and arrays.
I'm building a multi step sign up form and I need to store all the
variable until the final step, when they are inputed to a database. I
thought the best way to do this would be to store the contents for
$HTTP_POST_VARS in session variables.
Well, can't say I see the same problem:
?php
$_SESSION['foo'] = array(hi=bye);
print_r($_SESSION['foo']);
echo \n\n;
print is_array($_SESSION['foo']);
Outputs:
X-Powered-By: PHP/4.2.2
Content-type: text/html
Array
(
[hi] = bye
)
1
Which is what I'd expect it to show.
Now how did you
29, 2002 9:59 PM
To: Ryan Neudorf
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Session variables and arrays
Well, can't say I see the same problem:
?php
$_SESSION['foo'] = array(hi=bye);
print_r($_SESSION['foo']);
echo \n\n;
print is_array($_SESSION['foo']);
Outputs:
X-Powered
First, forgive me if this seems to be cross post -- but it does involve
both PHP and MySQL.
My client requirements are:
From their website, they display a list of classes. On registering for a
class, the user is sent to a secure page that is hosted on a different
secured server that does not
PROTECTED]
Subject: [PHP-DB] session variables across several pages
First, forgive me if this seems to be cross post -- but it does involve
both PHP and MySQL.
My client requirements are:
From their website, they display a list of classes. On registering for a
class, the user is sent to a secure
I believe you.. I added
$HTTP_SESSION_VARS['e_address'] = $e_address;
in my process form code and it's still not updating the var.
snippit from select_class.php where I have reference to $e_address:
session_register(e_address);
...
switch($doAction) {
This is freaky.
If I change the form method='get' I can see the e_address coming in
correctly, but it gets changed back to old value -- by the
session_register('e_address')??
should I have something along the line of
if(!$e_address) register_session('e_address');
???
On Wednesday,
']=$address;
see if that makes any difference?
-Original Message-
From: Terry Romine [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2002 16:40
To: matt stewart
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] session variables across several pages
This is freaky.
If I change the form method='get' I can see
huh.. seems to work, now.
I do the following:
session_start();
session_register(form_data);
if($doAction) {
switch($doAction) {
case Save Information:
// save data in cookies
$HTTP_SESSION_VARS['form_data'] =
I have compiled php-4.0.6 from source with --enable-track-vars and
--enable-trans-sid options (--with-mysql and --with-apxs).
I use RH7.1 and mysql-3.23.41.
In my /usr/local/test/connect.inc I use the following code
?php
$login = $HTTP_SESSION_VARS[login];
$passwd =
When I run main.html, I get the following error message :
Warning : Cannot send session cookie - headers already sent by (output
started at /var/www/html/main.html: 10) in /var/www/html/main.html on
line 11
Where could I be wrong ?
Raju
You must make sure that in pages where you use
22 matches
Mail list logo