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)) {
generate_
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 kno
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 wo
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] Sess
Sent: 18 February 2003 11:20
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-DB] Session variables when global variables switched off
> [Sorry, first message accidentally fired off to quickly ]
>
>
> [sorry for the incomplete posting of a couple moments ago. I hit ctl
> someth
[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 w
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
"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
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
http://w
ttype():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
&
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
nt strlen($_SESSION['categories']);
If you get "5", then the variable might be a string with the contents
being the word "Array". Pretty doubtful, but we're being thorough here.
Peter
> Hmph
>
> - Ryan
>
> > -Original Message-----
>
October 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:
>
> $_SESSION['foo'] = array("hi"=>"bye");
>
> print_r($_SESSI
Well, can't say I see the same problem:
"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 assign categories?
Maybe the var
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. T
hello all..
in my site, where im using phpscript, some users are allowed to del/modify
contents of the database. for this they have been provided login name and
password, after user loggs into the secure area, session starts. since here,
user can modify/del contents of database, i needed to us
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'] =
array($name,$employer,$e
N_VARS['sess_address']=$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.
This is freaky.
If I change the 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, May 15, 2002, at 09:
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) {
5:49
To: [EMAIL 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 s
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
> 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 us
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
This file is invoked in all my script files. (The system works without
ses
I'm experimenting with sessions and note that you seem to able pass a query
result id via an include but not via an . Is this correct or
have I got it wrong? Do I need to do something to $session[result] before
passing it via ? Example scripts:
session.phtml:
$connection = mysql_connect($DBHost,
25 matches
Mail list logo