On 8/8/2012 11:24 AM, Ansry User 01 wrote:
I am setting the _SESSION variables in one of my file, but whenever I leave the
php page session variables are not accessible. Not sure what I need to do
additionally other then defining _SESSION[].
Any pointer.
You must make it a habit to start ea
Ok, that usually happens.
Gerardo
www.webseficientes.com.ar
On Tue, Jun 8, 2010 at 1:48 PM, Stephen Sunderlin <
stephen.sunder...@verizon.net> wrote:
> Thanks Gerardo.
>
> I send a large dump.sql file to my /tmp dir and filled up the remaining
> space so PHP was not able to write any more sessio
Thanks Gerardo.
I send a large dump.sql file to my /tmp dir and filled up the remaining
space so PHP was not able to write any more session variable. Took me a
little while to figure that one out.
Thanks for your response.
On Tue, 08 Jun 2010 12:00:23 -0400, Gerardo Benitez
wrote:
Hi Ste
Hi Stephen,
you can try setting the session path using session_save_path
http://www.php.net/manual/en/function.session-save-path.php.
Gerardo
www.webseficientes.com.ar
On Sat, Jun 5, 2010 at 2:18 AM, Stephen Sunderlin <
stephen.sunder...@verizon.net> wrote:
> trying out a CentOS release 5.2 (
On Wed, Feb 3, 2010 at 8:20 AM, Ashley Sheridan
wrote:
> On Wed, 2010-02-03 at 10:49 +0100, Aurelie REYMUND wrote:
>
> > Hello,
> >
> > unfortunately, it does not suite my needs. The image must be clickable.
> The
> > application I'm developping reads data from a database and display the
> > info
At 10:49 AM +0100 2/3/10, Aurelie REYMUND wrote:
Hello,
unfortunately, it does not suite my needs. The image must be clickable. The
application I'm developping reads data from a database and display the
information graphically. The user must be able to click on some elements of
the picture, and
On Wed, 2010-02-03 at 10:49 +0100, Aurelie REYMUND wrote:
> Hello,
>
> unfortunately, it does not suite my needs. The image must be clickable. The
> application I'm developping reads data from a database and display the
> information graphically. The user must be able to click on some elements of
Hello,
unfortunately, it does not suite my needs. The image must be clickable. The
application I'm developping reads data from a database and display the
information graphically. The user must be able to click on some elements of
the picture, and I have to store the information the user clicked on
From: "Aurelie REYMUND"
Sent: Monday, February 01, 2010 3:37 AM
To:
Subject: [PHP] session variables and SVG documents
Hello,
I have the following problem with the Adobe SVG viewer:
I try to generate a SVG document using PHP. the following code is working
well under Firefox, as well as IE wit
On Mon, 2010-02-01 at 11:37 +0100, Aurelie REYMUND wrote:
> Hello,
>
> I have the following problem with the Adobe SVG viewer:
> I try to generate a SVG document using PHP. the following code is working
> well under Firefox, as well as IE with ASV:
>
>
> header("Content-type: image/svg+xml");
; 'Floyd Resler'
Cc: a...@dotcontent.net; php-general@lists.php.net
Subject: RE: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS
Leon,
This is really just a function of the browser. When a session cookie is
created, if the browser is setup for a single instance, that's the sessi
Leon,
This is really just a function of the browser. When a session cookie is
created, if the browser is setup for a single instance, that's the session
cookie it'll use for *any* request to that domain. This functions differently
depending on what browser you're using.
For example:
Firefox
On Thu, 2009-08-20 at 15:16 +0200, Leon du Plessis wrote:
> It is just strange that I have this "condition" now...maybe I missed it a
> year ago ?
>
> >> "Having a different session start up for each window for tab would be a
> major pain."
>
> Why?
>
> People must please try and understand wh
Thanks everyone for your help, I finally got it working.
For those that were curious, my writeResultRow() function was not naming the
input fields properly, so the SESSION variables could not be updated
properly. I had to add an array item for each show, an id, then call the id
to name the inputs
> Thanks all for your patience! I will work on this today and write back with
> any further questions I can't figure out on my own. And if anyone has any
> advice I will be checking my email regularly.
If you've already tried this with no luck, please ignore -- but you
might speed up the whole pro
On Fri, Aug 14, 2009 at 12:25 PM, Allen McCabe wrote:
> Thank you all for your responses.
>
> Mike.
>
> I like the ii option better, mostly because I already have most of that in
> place (ie. order posts to process, and process has editable fields and
> hidden fields with the remaining complimenta
Thank you all for your responses.
Mike.
I like the ii option better, mostly because I already have most of that in
place (ie. order posts to process, and process has editable fields and
hidden fields with the remaining complimentary values).
Martin suggested I use the following code for my update
> -Original Message-
> From: Allen McCabe [mailto:allenmcc...@gmail.com]
> Sent: 14 August 2009 06:58
>
> Here is some more complete code:
>
> [code = order_process.php]
>
> session_start();
> // POST ALL $_POST VALUES, CREATE AS VARIABLES IN SESSION
> foreach($_POST as $k=>$v) {
> $_S
> -Original Message-
> From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk]
> Sent: 14 August 2009 11:45
> > Now, here is the update_order.php code in entirety:
> >
> > [code]
> >
> > > session_start();
> > foreach ($_SESSION as $var => $val) {
> > if ($val == "0") {
> > unset($_SESSION[$v
> -Original Message-
> From: Allen McCabe [mailto:allenmcc...@gmail.com]
> Sent: 14 August 2009 06:58
> My ai with using unset($var) in update_order.php is to set the
> SESSION
> variable for an item to ' ' (empty) so that it would not show up on
> the
> order summary (because my writeRe
On Fri, 2009-08-14 at 10:05 +0200, Ralph Deffke wrote:
> well thanks good they are far away then, but the problem is ur client, i
> didnt find anybody giving me the permission to beat his customers
>
> "Ashley Sheridan" wrote in message
> news:1250236989.2344.10.ca...@localhost...
> > On Fri, 200
well thanks good they are far away then, but the problem is ur client, i
didnt find anybody giving me the permission to beat his customers
"Ashley Sheridan" wrote in message
news:1250236989.2344.10.ca...@localhost...
> On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:
> > user often leave
>
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:
> user often leave
> forms open for hours and then submit them
These users should be taken out and beaten over the head with their
keyboards!
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To
I'm realy sorry for u, but the reason for no answers is ur concept.
may be some rules will help u and I recommend u to think to spend the time
to rewrite the whole code. Im shure u will solve the problem then:
first dont use the global arrays directly. pick the values u need and put
them in reaso
Ben,
First of all, I thank you for your time and help.
My ai with using unset($var) in update_order.php is to set the SESSION
variable for an item to ' ' (empty) so that it would not show up on the
order summary (because my writeResultRow() function will only write a row if
that variable is great
>
> I have the following code for order_update.php:
>
> [code]
>
> session_start();
> extract($_POST);
> foreach ($_POST as $var => $val) {
> if ($val > 0) {
> $_SESSION[$var] = $val;
> } else {
> unset($var);
>
> }
> header("Location: order_process.php");
> }
>
> [/code]
>
> This is not work
Yeah i guess the cookie doesn't need to be stored on the server since it's
in the header anyway.
Thanks for clearing that up.
Tim-Hinnerk Heuer
http://www.ihostnz.com
Charles M. Schulz - "I love mankind; it's people I can't stand."
2009/2/7 Stuart
> 2009/2/7 Paul M Foster :
> > I'm not too c
2009/2/7 Paul M Foster :
> I'm not too clear on HTTP headers, cookies, and such. So here are
> questions related to that. Let's say I generate a random number that I
> want the user to enter in a form. When I generate the number, I store it
> in a session variable ($_SESSION). When the user submits
The session data is stored on the server. In the user's browser, only a
session cookie is stored, usually a random session id string. I could never
retrieve the session variables with any browser tools, always only with PHP
by echoing them out or something. Also, a cookie is simply a text file with
A Session is stored on the user browser in a session ( in memory
cookie) and on the server as a file. The session mgmt tools will read
the file as needed.
Bastien
Sent from my iPod
On Feb 7, 2009, at 1:58, Paul M Foster wrote:
I'm not too clear on HTTP headers, cookies, and such. So here
Oops
Logins are from
http://www.rons-home.net/page/login-greeting/
Blog postings are from
http://www.rons-home.net/blog/28/
with the word 'page' gone the session variable doesn't acknowledge the
login.
Ron
On Sat, 2008-10-11 at 21:12 -0400, Ron Piggott wrote:
> I did some more testing. The
I did some more testing. The URL is the problem.
Logins are from
On Sat, 2008-10-11 at 19:59 -0400, Daniel Brown wrote:
> On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott <[EMAIL PROTECTED]> wrote:
> > I am programming a blog.
> >
> > index.php sets up the layout for the web page. This includes
This is one of the first commands given.
I am using modrewrites to call the blog entries.
blog.php is responsible for displaying both the table of contents and
the blog entries. When the table of contents is called
(http://www.rons-home.net/page/blog/ ) the session variables are
present. W
On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott <[EMAIL PROTECTED]> wrote:
> I am programming a blog.
>
> index.php sets up the layout for the web page. This includes the
> heading, left hand and bottom menus.
>
> The content is loaded by the command:
>
> include($filename);
>
> the $_SESSION variab
Yep, I see that now. I really need to take a break - been at this way to
long.
Thanks to all.
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]
Sent: May 31, 2006 3:02 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] Session variables and words with
Not sure why I would get a parse error, but that did correct the problem. I
just completely missed the single quote. I never even clue'd in when I
looked at the source of the page.
Sometimes another pair of eyes does the trick. Maybe it's time for a break.
Thanks
>> I'm surprised you're not get
ls
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]
Sent: May 31, 2006 2:28 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] Session variables and words with spaces
Perhaps you should load up your initial form and then use the "view source"
option in you
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]
Sent: May 31, 2006 2:28 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] Session variables and words with spaces
Perhaps you should load up your initial form and then use the "view source"
option in your
Thanks - Done that though. It shows the way it should be.
Example: Niagara Falls
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]
Sent: May 31, 2006 2:28 PM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PHP] Session variables and words with spaces
Perhaps
Beauford wrote:
Hi,
I have a form in which a drop down field is populated from a MySQL database.
I am also using sessions.
The problem is this. After I submit the form the session variable only shows
the part of the input before the space.
Example: if I choose Niagra Falls from the drop down l
Perhaps you should load up your initial form and then use the "view
source" option in your browser as this will probably give you insight
into your problems...
-Brad
Beauford wrote:
Hi,
I have a form in which a drop down field is populated from a MySQL database.
I am also using sessions.
Th
Zac Smith schrieb:
> http://www.triptrivia.com/step2-debug.php?State=abc
404
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 06 September 2004 14:08, Peter Brodersen wrote:
> On Mon, 6 Sep 2004 13:33:02 +0800, in php.general
>
> [EMAIL PROTECTED] (Jason Wong) wrote:
> >> $username = trim(addslashes($_POST['user_name']));
> >> $pass = trim(addslashes($_POST['password']));
> >
> >addslashes() is not needed as
Dre wrote:
no I did this a long time ago
(I did have this problem before :o) )
Try echo $_REQUEST[session_name()]; in members/main.php. It should print
the session id. Then there should be a session file sess_[session id].
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECT
no I did this a long time ago
(I did have this problem before :o) )
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dre wrote:
> > and by the way ..
> > I'm using MS Windows XP Pro. which I do believe that it has some hand in
the
> > problem :)
>
> Like you did not
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> > $username = trim(addslashes($_POST['user_name']));
> > $pass = trim(addslashes($_POST['password']));
>
> addslashes() is not needed as you're performing SELECT query
> and not an INSERT query.
That's not true, since he's using user data in the SQL sta
Dre wrote:
and by the way ..
I'm using MS Windows XP Pro. which I do believe that it has some hand in the
problem :)
Like you did not change session.save_path setting in php.ini from /tmp
to whatever it is supposed to be on windows.
"Dre" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTE
On Mon, 6 Sep 2004 13:33:02 +0800, in php.general
[EMAIL PROTECTED] (Jason Wong) wrote:
>> $username = trim(addslashes($_POST['user_name']));
>> $pass = trim(addslashes($_POST['password']));
>
>addslashes() is not needed as you're performing SELECT query and not an INSERT
>query.
How did you
Please do not top post.
On Monday 06 September 2004 06:53, Dre wrote:
As well as what everybody else has said ...
> $username = trim(addslashes($_POST['user_name']));
> $pass = trim(addslashes($_POST['password']));
addslashes() is not needed as you're performing SELECT query and not an INSE
Dre wrote:
yes I'm sure
Won't hurt to echo it out.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yes I'm sure
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dre wrote:
>
> > if((empty($_POST['user_name'])) || (empty($_POST['password'])))
> > {
> > header('Location: index.php');
> >include("login_form");
> >exit();
> > }
>
> That include is useless
Dre wrote:
if((empty($_POST['user_name'])) || (empty($_POST['password'])))
{
header('Location: index.php');
include("login_form");
exit();
}
That include is useless, as you're forwarding to another document right
before it.
else{
include("db.php");
$sql = "SELECT * FROM me
and by the way ..
I'm using MS Windows XP Pro. which I do believe that it has some hand in the
problem :)
"Dre" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I do know this
> and what happen is that the $_SESSION array become empty once I redirect
> from the login page (after logi
this is the username/password validation script which receives the user name
and password from a regular form
and they are sent correctly
logme_in.php
//==
==
"."CLICK HERE TO GO TO MEMBERS SECTION";
echo "";
//session_write
Dre wrote:
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
Are you starting the session on every page? How are you sending the
session id?
--
By-Tor.com
It's all about the Rush
http://ww
Dre wrote:
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
That means you are loosing your session. Is the session id sent? Is the
session file (usualy in /tmp) created?
"Marek Kilimajer"
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dre wrote:
> > I don't know why but session variables does
Dre wrote:
I don't know why but session variables does not get posted .. is there any
thing in the php.ini that I should configure as
I can't find any thing wrong in the code I'm using !!
Session variables are not posted, they are kept on the server. Only the
session id is sent as a cookie, get or
thanks Jay.
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
I am also wondering if I need to declare all my variables one after the
other or can I
On Tue, 13 Jul 2004 17:52:44 +0100, Harlequin
<[EMAIL PROTECTED]> wrote:
> I'm right in the middle of developing some pages that will require session
> cookies. Now I have a few questions and hope I don't bore you too much...
>
> I presume I am right in assuming that I can declare variables anywhe
> I presume I am right in assuming that I can declare variables anywhere I
> like providing I have started a session on the page but I cannot
> actually use those variables until a post or some similar action has
> been performed by the user.
No, you can use them right away - they are stored serve
[snip]
I am also wondering if I need to declare all my variables one after the
other or can I simply declare variables that I will be using immediately
upon submission.
[/snip]
Since PHP is not strongly typed (like C or C++) you need not declare any
variables. There are some caveats (see
http://ww
On 06/01/04 22:12 John Nichel spoke:
Bob Lockie wrote:
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session
variable.
Did you start the session before you set $_SESSION['new_name']?
That was my problem.
I reorganized and p
Bob Lockie wrote:
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session variable.
Yes, it is. Providing you have sessions configured correctly and use
session_start().
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/
Bob Lockie wrote:
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session variable.
Did you start the session before you set $_SESSION['new_name']?
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mail
Brian Dunning wrote:
This is 4.3.2 and sessions are enabled.
Session handling was added in PHP 4.0.
The first line of my file is session_start(); but whenever I try to set
or reference $_SESSION['anything'] I get:
Undefined variable: _SESSION
- Brian
Post some code.
--
John C. Nichel
KegWorks.com
This is 4.3.2 and sessions are enabled.
Session handling was added in PHP 4.0.
The first line of my file is session_start(); but whenever I try to
set
or reference $_SESSION['anything'] I get:
Undefined variable: _SESSION
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Session handling was added in PHP 4.0.
>>The first line of my file is session_start(); but whenever I try to set
>>or reference $_SESSION['anything'] I get:
>>
>> Undefined variable: _SESSION
>>
>>What's up with that???
>>
>>- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
If a page accesses the session variables does it need to explicity
reset them as well because it would appear that an intermediate PHP
script which also reads the 2 variables is destroying the session for
no apparent reason
On 14 May 2004, at 22:11, Brad Pauly wrote:
On Fri, 2004-05-14 at 14:4
Either typing the URL directly or by using a hyperlink.
On 14 May 2004, at 22:09, John W. Holmes wrote:
From: "Andrew Wood" <[EMAIL PROTECTED]>
Using a cookie which is shown in my browser as PHPSESSID
Yes they're on the same domain but no there's nothing being passed
accross the URL. Should th
On Fri, 2004-05-14 at 14:48, Andrew Wood wrote:
> I'm trying to set the following two vars on one page then read their
> values on another like this:
>
> page1.php...
>
> ob_start();
> session_start();
> $_SESSION['member_id'] = $member_id;
> $_SESSION['password'] = $password;
> ob_end_flush
From: "Andrew Wood" <[EMAIL PROTECTED]>
> Using a cookie which is shown in my browser as PHPSESSID
>
> Yes they're on the same domain but no there's nothing being passed
> accross the URL. Should there be?
No, not normally. How are you getting from page 1 to page 2?
> page1.php...
>
> ob_start(
Using a cookie which is shown in my browser as PHPSESSID
Yes they're on the same domain but no there's nothing being passed
accross the URL. Should there be?
AW
On 14 May 2004, at 21:59, John W. Holmes wrote:
- Original Message -
From: "Andrew Wood" <[EMAIL PROTECTED]>
To: <[EMAIL PRO
- Original Message -
From: "Andrew Wood" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 14, 2004 4:48 PM
Subject: [PHP] Session variables not working
> I'm trying to set the following two vars on one page then read their
> values on another like this:
[snip]
> But on page
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> This looks like output from 'php -i'. The php module *can* have a
> different config, check these values from phpinfo() in a webpage
> in the same directory as your scripts with
I fired my proofreader so I have to do this manually now :)
s/ with/.
* Thus wrote Charles Collins ([EMAIL PROTECTED]):
> I have two test files running on a server, which is giving me a headache,
> due to the fact the session variables are not been maintained across the two
> pages.
>
> The server is running ...
>
> PHP Version = 4.0.5
> register_globals = ON
> Se
Does page1 call page2?
Or do you open another browser window and open page2?
My understanding is some browsers to NOT transfer the same session info to
another borwser window.
> Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get
> the damn thing working.
>
> Regards,
> Cha
hum. Try $_SESSION['test'] on page 2.
> I have two test files running on a server, which is giving me a headache,
> due to the fact the session variables are not been maintained across the
> two
> pages.
>
> The server is running ...
>
> PHP Version = 4.0.5
> register_globals = ON
> Session Supp
Dear Vincent,
Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get
the damn thing working.
Regards,
Charlie.
"Vincent Dupont" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I would do
script 1 :
$_SESSION['test'] = "hello world";
and in script2 :
print($_SESSI
I would do
script 1 :
$_SESSION['test'] = "hello world";
and in script2 :
print($_SESSION['test']);
vincent
-Original Message-
From: Charles Collins [mailto:[EMAIL PROTECTED]
Sent: mardi 20 avril 2004 17:44
To: [EMAIL PROTECTED]
Subject: [PHP] session variables
I have two test files r
Joseph Ross Lee wrote:
Hello... Is there any example that I can look at that does a session
variable as an array? thanks
session_start();
$_SESSION['somekey'] = 'somevalue';
$_SESSION['someotherkey'] = array('one','two','three','four');
$_SESSION['yetanother'] =
array(array('one','two','three'),
On Tue, 2004-02-10 at 03:13, Ronald Ramos wrote:
> It Worked. Thanks Man!
> So I can use this to any other page?
Awesome! You have access to the $_SESSION variables on any php page on
the same server. Just make sure you call session_start() before you
access the $_SESSION array.
> Let's say I h
On Tue, 2004-02-10 at 02:45, Ronald Ramos wrote:
> $_SESSION['username'];
> $_SESSION['password'];
Close, try this instead:
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
> I edited page3.php but it still shows me nothing.
It looks great, now you just need to clear up your
On Tue, 2004-02-10 at 00:43, Ronald Ramos wrote:
> Hi All,
>
> I've created 3 sample scripts, pls see below.
> My problem is that page3.php can't display the value $username and
> $password
> Or is it because it the variables were not importe to that page, that's
> why
> $username and $password ha
--- Diana Castillo <[EMAIL PROTECTED]> wrote:
> If you store session variables , but the user has session cookies
> disabled, is there any way to recuperate those session variables?
Cookies come in two types: session cookies and persistent cookies. Session
cookies have no set expiration date, so t
Diana Castillo wrote:
If you store session variables , but the user has session cookies disabled,
is there any way to recuperate those session variables?
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL
If you store session variables , but the user has session cookies
disabled,
is there any way to recuperate those session variables?
Yes, look at the session.use_trans_sid variable.
http://www.php.net/session
If cookies are disabled, php will pass the session id as a ur variable
or a hidden f
> It seems that once a session is started and variables set, I
> can access the
> variables on the page on which they are set, but on
> subsequent pages via
> link or Header redirect the session variables are not set and
> cannot be
> accesses.
Be sure you have session_start() at the top of *al
In case anyone else runs into this problem, the way I solved it was by
reinstalling php with the windows installer from php.net. I'm not
exactly sure what the problem was, but reinstalling it this way solved
the problem. Hope this helps someone else.
Jami Moore
LightSpark Digital Designs
[EMAIL PR
Scott,
thanks for the suggestion, but my php.ini is the same as yours. And I
still have the problem. Any idea why $_SESSION[] variables would loose
data on my server type and not on another?
Jami Moore
LightSpark Digital Designs
[EMAIL PROTECTED]
http://www.lightsparkdigital.com/
-Original
Speaking of your problem, you're using the header() function to exit the
webpage to the login page. So, it all come down to the either one of these
two or both of these two
if(!isset($uname)) {
if (mysql_num_rows($result) == 0) {
Upon closer inspection on the script, it look like either th
Knew I forgot to mention something. No, register_globals are off. Using
$_SESSION[] variables. I am logging in first. I log in fine, its when I
try to go to another page via a link on the entry page that I get booted
back to the login page. My scripts work fine on a Unix server, which is
what I rel
Did you open register_globals = On in php.ini?
Larry Li/CNTR/APPLIED [EMAIL PROTECTED]
09/17/2003 04:04 PM
To: <[EMAIL PROTECTED]>
cc: "PHP General" <[EMAIL PROTECTED]>
Subject: Re: [PHP] SESSION variables losing data on Wi
I believe all pages in your site are protected by session variables. Try
to login first, then go where you want to go. Or try to remark codes which
check your login status.
"Jami" <[EMAIL PROTECTED]>
09/17/2003 03:52 PM
Please respond to listmail
To: "PHP General" <[EMAIL PRO
From: "micro brew" <[EMAIL PROTECTED]>
> Here's my class. I start the session in the
> constructor and in later methods attempt to register
> session variables. You can see I've tried a couple
> different methods but none of them maintain the
> session variable values. Any suggestions?
Is regi
Thanks Curt,
You were absolutely correct. Removing the
session_register() lines before the $_SESSION[] fixed
the problem. By mixing the two before, it actually
would register the variable so I could later test for
the registered session variable but it did not retain
the value I assigned it. Th
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> * Thus wrote micro brew ([EMAIL PROTECTED]):
> > Hi everyone,
> >
> > I've been experimenting with sessions. I can make
> > them work just fine in a normal PHP page. But when I
> > create a class and try to define a session variable
> > within a me
* Thus wrote micro brew ([EMAIL PROTECTED]):
> Hi everyone,
>
> I've been experimenting with sessions. I can make
> them work just fine in a normal PHP page. But when I
> create a class and try to define a session variable
> within a method in the class it won't work. I've
> tried setting the s
Here's my class. I start the session in the
constructor and in later methods attempt to register
session variables. You can see I've tried a couple
different methods but none of them maintain the
session variable values. Any suggestions?
Mike
http://www.somedomain.com/somepage.php';
var
$exitP
From: "micro brew" <[EMAIL PROTECTED]>
> I've been experimenting with sessions. I can make
> them work just fine in a normal PHP page. But when I
> create a class and try to define a session variable
> within a method in the class it won't work. I've
> tried setting the session variable directly
1 - 100 of 142 matches
Mail list logo