[PHP] Session problem

2010-12-21 Thread Walter Caielli
I'm facing the following basic problem: I have made two simple sample files to explain it: 1st file: ?php session_start(); $_SESSION['SS_user'] = user000; echo $_SESSION['SS_user']; echo SID; echo br.session_id(); echo 'br /a href=home.phppage 1/a'; ? 2nd file ?php

RE: [PHP] SESSION problem

2008-08-20 Thread tedd
At 12:55 AM +0100 8/20/08, Ford, Mike wrote: Content-Type: text/plain Content-length: 1998 Been on holiday, so coming to this party a bit late, but On Sat 16/08/2008 15:06 Stut wrote: On 16 Aug 2008, at 14:46, tedd wrote: At 2:11 PM +0100 8/16/08, Stut wrote: Ahh, I see the problem.

RE: [PHP] SESSION problem

2008-08-19 Thread Ford, Mike
Been on holiday, so coming to this party a bit late, but On Sat 16/08/2008 15:06 Stut wrote: On 16 Aug 2008, at 14:46, tedd wrote: At 2:11 PM +0100 8/16/08, Stut wrote: Ahh, I see the problem. You've never been able to use numbers as keys at the root level of the $_SESSION array.

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 8:02 PM -0700 8/15/08, VamVan wrote: Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it. VamVan: Yes, I thought that as well and practiced it for

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 12:36, tedd wrote: At 8:02 PM -0700 8/15/08, VamVan wrote: Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it. VamVan: Yes, I

Re: [PHP] SESSION problem

2008-08-16 Thread Ashley Sheridan
session_start() doesn't have to be the first line in the code, but it does have to occur before ANY content sent to the browser, and this includes any headers as well. Generally speaking, it does no harm to have it as the first line of your PHP code Ash www.ashleysheridan.co.uk

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
Hello Tedd, it seems to be a naming problem. You may not use a numeric value for a variable name to store in $_SESSION. By assigning it to $_SESSION, you get a Notice: Unknown: Skipping numeric key 1 in Unknown on line 0 and in your second script a Notice: Undefined offset: 1 in

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 12:40 PM +0100 8/16/08, Stut wrote: On 16 Aug 2008, at 12:36, tedd wrote: The problem here is can I use a variable within a $_SESSION[] declaration? Like so: $_SESSION[$var] I haven't really been following this thread but using a variable like that is perfectly valid. $_SESSION is no

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 2:09 PM +0200 8/16/08, Sabine Richter wrote: Hello Tedd, it seems to be a naming problem. You may not use a numeric value for a variable name to store in $_SESSION. By assigning it to $_SESSION, you get a Notice: Unknown: Skipping numeric key 1 in Unknown on line 0 and in your second

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
Hello Tedd, tedd schrieb: At 2:09 PM +0200 8/16/08, Sabine Richter wrote: Hello Tedd, it seems to be a naming problem. You may not use a numeric value for a variable name to store in $_SESSION. By assigning it to $_SESSION, you get a Notice: Unknown: Skipping numeric key 1 in Unknown on

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 13:20, tedd wrote: At 12:40 PM +0100 8/16/08, Stut wrote: On 16 Aug 2008, at 12:36, tedd wrote: The problem here is can I use a variable within a $_SESSION[] declaration? Like so: $_SESSION[$var] I haven't really been following this thread but using a variable like

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 2:11 PM +0100 8/16/08, Stut wrote: Ahh, I see the problem. You've never been able to use numbers as keys at the root level of the $_SESSION array. It's not a bug, it's just the way it is. I've just checked the documentation and can't find an obvious reference to this limitation which is

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 2:45 PM +0200 8/16/08, Sabine Richter wrote: Yes, our mails overlaped each other (Do you say that in english? My english is not the best.) Sabine: Your English is fine -- much better than my de for certain. By the way: I tried your initial code and I had no problem with the variable

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 14:46, tedd wrote: At 2:11 PM +0100 8/16/08, Stut wrote: Ahh, I see the problem. You've never been able to use numbers as keys at the root level of the $_SESSION array. It's not a bug, it's just the way it is. I've just checked the documentation and can't find an obvious

Re: [PHP] SESSION problem

2008-08-16 Thread Eric Butera
On Sat, Aug 16, 2008 at 10:06 AM, Stut [EMAIL PROTECTED] wrote: I wish I understood the reason why it's like this but I've never looked into the session extension in that level of detail, but I doubt such a limitation would exist if there was not a very good reason for it. But again, I don't

Re: [PHP] SESSION problem

2008-08-16 Thread Ashley Sheridan
I tend to prefer assigning all my session variables to an array, which itself is a member of the $_SESSION array. For example: $_SESSION[] Array ( [myarray] = Array ( [someitem] = x [someitem2] = y

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 3:06 PM +0100 8/16/08, Stut wrote: Not really, since I would never name a session variable 1, or 2, or 5318008 - I would always put those in the session in a named array. That's understandable. But, if you came from a background that predated associate arrays, then using numeric indexes

Re: [PHP] SESSION problem

2008-08-16 Thread Stut
On 16 Aug 2008, at 17:03, tedd wrote: I understand what you are saying -- semantics are important. But if there is a need for temporary place to store values I don't consider it bad form to store them in a numerically indexed array. For example, if a user was going to purchase up to 10

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
reporting to E_ALL. That's what I get: index.php: f411abf8cb6cb7e0f2d091251c1906dd Step 1 -- SESSIONs Recorded 1 = 1 2 = 2 3 = 3 4 = 4 5 = 5 6 = 6 7 = 7 8 = 8 9 = 9 10 = 10 hello Code: ?php // Session problem tedd sperling, php liste 15.08.2008 ini_set('error_reporting', E_ALL ); if (session_id

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
At 5:15 PM +0100 8/16/08, Stut wrote: Instead I assert you would have... $_SESSION['user_purchase'][0] = $item0; ... $_SESSION['user_purchase'][9] = $item9; which is perfectly valid. I'll try to re-word my basic point... I personally consider it bad to even want to use numeric indexes at the

Re: [PHP] SESSION problem

2008-08-16 Thread tedd
Sabine: I understand the problem now. But to get to my basic question to you, namely using this link: http://www.webbytedd.com/b2/session-test1/index.php -- does SESSION[20] and SESSION[test2] show anything in the second step (Step 2) or are the results blank? Cheers, tedd -- ---

Re: [PHP] SESSION problem

2008-08-16 Thread Sabine Richter
tedd schrieb: Sabine: I understand the problem now. But to get to my basic question to you, namely using this link: http://www.webbytedd.com/b2/session-test1/index.php -- does SESSION[20] and SESSION[test2] show anything in the second step (Step 2) or are the results blank? Oh, ok,

[PHP] SESSION problem

2008-08-15 Thread tedd
Hi gang: Arrggg -- what the heck is going on? I can't get anything to pass via SESSION -- what's wrong? Here's the example -- (all the code is there): I populate the $_SESSIONs here. http://www.webbytedd.com/b2/session-test/index.php If you click Proceed to Step 2, you'll see that nothing

Re: [PHP] SESSION problem

2008-08-15 Thread Dan Joseph
On Fri, Aug 15, 2008 at 1:09 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: Arrggg -- what the heck is going on? I can't get anything to pass via SESSION -- what's wrong? Here's the example -- (all the code is there): I populate the $_SESSIONs here.

Re: [PHP] SESSION problem

2008-08-15 Thread Philip Thompson
On Aug 15, 2008, at 12:16 PM, Dan Joseph wrote: On Fri, Aug 15, 2008 at 1:09 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: Arrggg -- what the heck is going on? I can't get anything to pass via SESSION -- what's wrong? Here's the example -- (all the code is there): I populate the $_SESSIONs

RE: [PHP] SESSION problem

2008-08-15 Thread Boyd, Todd M.
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 12:10 PM To: php-general@lists.php.net Subject: [PHP] SESSION problem Hi gang: Arrggg -- what the heck is going on? I can't get anything to pass via SESSION -- what's wrong? Here's

RE: [PHP] SESSION problem

2008-08-15 Thread tedd
At 1:47 PM -0500 8/15/08, Boyd, Todd M. wrote: Have you tried: echo SID; ...? I'm wondering if you're going to get different values on the two pages. What that means beyond two different sessions is beyond me, but it's a start. Todd Boyd Web Programmer Todd: I added code to show

Re: [PHP] SESSION problem

2008-08-15 Thread VamVan
Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it. Thanks On Fri, Aug 15, 2008 at 4:39 PM, tedd [EMAIL PROTECTED] wrote: At 1:47 PM -0500 8/15/08, Boyd,

[PHP] Session problem

2007-11-21 Thread Mathieu Dumoulin
I got a strange problem here, here are the setup details first as this seems to be a server problem more than a php problem but it is still related to php configuration: Server: Win2003 (latest) WebServer: IIS6 (latest) PHP: php5.2.2.1 MySQL: mysql.5 Sites installed in server that may have

Re: [PHP] Session problem

2007-11-21 Thread Philip Thompson
On Nov 21, 2007 11:08 AM, Mathieu Dumoulin [EMAIL PROTECTED] wrote: I got a strange problem here, here are the setup details first as this seems to be a server problem more than a php problem but it is still related to php configuration: Server: Win2003 (latest) WebServer: IIS6 (latest)

RE: [PHP] Session problem

2007-11-21 Thread Andrés Robinet
-Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 4:43 PM To: php-general@lists.php.net Subject: Re: [PHP] Session problem On Nov 21, 2007 11:08 AM, Mathieu Dumoulin [EMAIL PROTECTED] wrote: I got a strange problem here, here

RE: [PHP] Session problem

2007-11-21 Thread Andrés Robinet
5:51 PM To: php-general@lists.php.net Subject: RE: [PHP] Session problem -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 4:43 PM To: php-general@lists.php.net Subject: Re: [PHP] Session problem On Nov 21, 2007 11:08 AM

[PHP] Session problem on PHP/Debian

2007-11-12 Thread Riviere Guillaume
Dear all, I have a problem with my PHP session on Debian Etch: When PHP create a session file sess_XXX it create this file without right: ~# ls -l /var/lib/php5/session/sess_* | more -- 1 www-data www-data 0 2007-11-13 06:49

Re: [PHP] Session problem

2007-09-30 Thread Dušan Novaković
Does no one have some solution or suggestion? Dušan On 9/29/07, Dušan Novaković [EMAIL PROTECTED] wrote: Hm.. I don't know that. I have also another application on the same server, and I haven't encountered problems of the same kind. I don't know whether these problems don't happend at all

Re: [PHP] Session problem

2007-09-30 Thread Jim Lucas
Dušan Novaković wrote: Does no one have some solution or suggestion? Dušan On 9/29/07, Dušan Novaković [EMAIL PROTECTED] wrote: Hm.. I don't know that. I have also another application on the same server, and I haven't encountered problems of the same kind. I don't know whether these

[PHP] Session problem

2007-09-28 Thread Dušan Novaković
Hi, I have two problems with sessions. Firstly, even though session limit is set on default value on server, which is about 5 hours, if I don't take any action for about 15 mins I am thrown out and I have to log in again. Are there any addition functions which I can use in order to explicitly

Re: [PHP] Session problem

2007-09-28 Thread Jim Lucas
Dušan Novaković wrote: Hi, I have two problems with sessions. Firstly, even though session limit is set on default value on server, which is about 5 hours, if I don't take any action for about 15 mins I am thrown out and I have to log in again. Are there any addition functions which I can use

Re: [PHP] Session Problem

2007-02-20 Thread Fergus Gibson
Brad Bonkoski wrote: How do you move from one page to the other? You have to pass the session along, I believe.. Something like: $s = SID; // session contant page2.php?$s You only need to pass the session identifier in the query string if you aren't using cookies. By default, sessions will

[PHP] Session Problem

2007-02-15 Thread LoneWolf
I am having a problem where it appears that the session is not being saved properly. While on a page, I can start a session and set variables to it. however, when I go to the next page.. the session variables appear to have been cleared out. first page: session_start(); $_SESSION[user_level]

RE: [PHP] Session Problem

2007-02-15 Thread Alan Fullmer
Does your system have permission to write to the temp directory? Put on error_reporting(E_ALL) and see if it throws an error. -Original Message- From: LoneWolf [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 2:35 PM To: php-general@lists.php.net Subject: [PHP] Session

Re: [PHP] Session Problem

2007-02-15 Thread Brad Bonkoski
LoneWolf wrote: I am having a problem where it appears that the session is not being saved properly. While on a page, I can start a session and set variables to it. however, when I go to the next page.. the session variables appear to have been cleared out. first page: session_start();

RE: [PHP] Session Problem

2007-02-15 Thread Brad Fuller
-Original Message- From: LoneWolf [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 4:35 PM To: php-general@lists.php.net Subject: [PHP] Session Problem I am having a problem where it appears that the session is not being saved properly. While on a page, I can start

[PHP] session problem

2006-06-20 Thread weetat
Hi all, I have 2 php page , whenever i click the submit in 1st page , the $_SESSION['LIST_OF_DATA'] display nothing in the 2nd page. If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it displayed the data correctly. Anybody have any ideas why php session behaviour is like

[PHP] Session problem when upgrading from 4 to 5.

2006-02-28 Thread Matthijs Dijkstra
Hi, Unfortunately it is not possible (for me) to initialise the 'session.save_path' directive in PHP 5. Up to version 4.3.5. there was no problem and the directive was set to '/tmp'. After upgrading to 5.0.2. and later to 5.1.2. I did not succeed in initialising the directive.

[PHP] Session-problem? Simple counter won't work

2005-08-09 Thread Sabine
Hello to all, I'm working on a server where even a simple counter-script won't work. session_start(); if (isset($HTTP_SESSION_VARS['counter'])) { $HTTP_SESSION_VARS['counter']++; } else { $HTTP_SESSION_VARS['counter']=1; } On every refresh the counter is set to 1. I dont' know, where to

Re: [PHP] Session-problem? Simple counter won't work

2005-08-09 Thread Jochem Maas
Sabine wrote: Hello to all, I'm working on a server where even a simple counter-script won't work. session_start(); if (isset($HTTP_SESSION_VARS['counter'])) { $HTTP_SESSION_VARS['counter']++; } else { $HTTP_SESSION_VARS['counter']=1; } On every refresh the counter is set to 1. I

[PHP] Session problem

2005-03-31 Thread Rosen
Hi, I have this code : page1.php: ? $nfo[fu]=12; session_start(); session_register(nfo); $sn=session_name(); $nn=session_id() ; $web=page2.php?lang=en; $web.=$sn=$nn; header(Location: $web); ? === page2.php: ? session_start(); global $nfo; $uss=$nfo[fu]; echo $uss;

RE: [PHP] Session problem

2005-03-31 Thread Kim Madsen
Hi -Original Message- From: Rosen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 31, 2005 11:31 AM To: php-general@lists.php.net Subject: [PHP] Session problem Hi, I have this code : page1.php: ? $nfo[fu]=12; session_start(); session_register(nfo); For good

[PHP] Session Problem

2004-10-05 Thread Kevin Javia
Hi there, I have got PHP 5 installed on IIS6 with 'register_globals = on'. When run my page with session variable at top of the page ? $_SESSION['_user'] == .. ? I got notice like Notice: Undefined index: _user in E:\Projects\. What can be the reason and what is the solution?

Re: [PHP] Session Problem

2004-10-05 Thread raditha dissanayake
Kevin Javia wrote: Hi there, I have got PHP 5 installed on IIS6 with 'register_globals = on'. consider switching it off. your application will be impossible to install on any other server if you keep working on it with register global s on. When run my page with session variable at top of

Re: [PHP] Session Problem

2004-10-05 Thread Brian
Make sure you are doing a session_start first. On Tue, 5 Oct 2004 19:00:57 +0530, Kevin Javia [EMAIL PROTECTED] wrote: Hi there, I have got PHP 5 installed on IIS6 with 'register_globals = on'. When run my page with session variable at top of the page ? $_SESSION['_user'] ==

[PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
OK, so it wasn't the nut behind the wheel after all. I am still having problems with sessions after upgrading to PHP 4.3.8. The test code below works as expected on server equipped with PHP 4.3.6 and keeps the session start time the same no matter what link you click on. However with version

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo(\n Session ResetBR); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called $_SESSION[''start_time'} nor, for that matter, have you 'saved' it

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, Well for what it's worth: Your code in Test1 sets the paraemters - if(!$_SESSION['start_time']){ echo(\n Session ResetBR); $_SESSION['start_time'] = time(); yet when Test2 loads, you haven't called

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Andre Dubuc
On Friday 13 August 2004 11:19 am, you wrote: On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, [snip] .for thatt matter, have you 'saved' it using session_write_close(); From the Manual: Session data is usually stored after your script terminated without the need to call

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread Torsten Roehr
Hi Andre, hi James, please see below Andre Dubuc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Friday 13 August 2004 11:19 am, you wrote: On Friday 13 August 2004 11:14 am, Andre Dubuc wrote: Hi James, [snip] .for thatt matter, have you 'saved' it using

Re: [PHP] Session Problem PHP version 4.3.8

2004-08-13 Thread James E Hicks III
On Friday 13 August 2004 01:14 pm, Torsten Roehr wrote: James, have you tried with manually calling session_start() and setting auto_start = 0? If not, please try this. Haven't followed your previous thread so please forgive me if I'm asking something you already wrote. Are you using cookies?

[PHP] Session problem

2004-06-22 Thread [EMAIL PROTECTED]
I have a problem with sessions. If someone closes their internet explorer window without logging off the session remains open. When you try to go back to the site IE hangs until I manually remove the sess_ files from the /tmp directory. Any insights on this one?? VR/Tim

Re: [PHP] Session problem

2004-03-24 Thread Richard Davey
Hello Carlos, Wednesday, March 24, 2004, 2:52:16 PM, you wrote: cc I want to know how can i do to make the session dont expire?. i have an cc application that works with sessions, when i left the browser open for a cc while, i dont know maybe 30 minutes, when i try to go into a section it cc

[PHP] Session problem

2004-03-24 Thread carlos castillo
I want to know how can i do to make the session dont expire?. i have an application that works with sessions, when i left the browser open for a while, i dont know maybe 30 minutes, when i try to go into a section it throw me an error, for session expire, how can i fic that?. thanks. Carlos A.

[PHP] session problem (i think)

2004-03-16 Thread Nick Rout
I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 I have a drupal site set up, http://rout.dyndns.org/cagc Since some time on Sunday i have had the following error appear at the bottom of the page: Warning: Unknown(): A session is active. You cannot change the

Re: [PHP] session problem (i think)

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 9:43:51 AM, you wrote: NR I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 NR I have a drupal site set up, http://rout.dyndns.org/cagc NR Since some time on Sunday i have had the following error appear at the NR bottom of the page:

Re: [PHP] session problem (i think)

2004-03-16 Thread Nick Rout
On Wed, 17 Mar 2004 11:03:12 +1000 Tom Rogers [EMAIL PROTECTED] wrote: Hi, Wednesday, March 17, 2004, 9:43:51 AM, you wrote: NR I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4 NR I have a drupal site set up, http://rout.dyndns.org/cagc NR Since some

Re[2]: [PHP] session problem (i think)

2004-03-16 Thread Tom Rogers
Hi, Wednesday, March 17, 2004, 12:24:27 PM, you wrote: NR Thanks, it is set right, but I see some other things are not. NR these other bits are set in a .htaccess file in the root of this NR applications htdocs tree. When I execute a test.php file in the same NR directory as the .htaccess file I

Re: [PHP] session problem (i think)

2004-03-16 Thread Nick Rout
On Wed, 17 Mar 2004 12:37:55 +1000 Tom Rogers [EMAIL PROTECTED] wrote: Hi, Wednesday, March 17, 2004, 12:24:27 PM, you wrote: NR Thanks, it is set right, but I see some other things are not. NR these other bits are set in a .htaccess file in the root of this NR applications htdocs tree.

[PHP] session problem

2004-02-04 Thread marc serra
Hi, I'm working on a multi-langage website and i got problem with a fonction which destroy my session :-( I got a file which change my langage like this : // session_start(); if ($_POST['langue']==us) $_SESSION['language']=us; else

Re: [PHP] session problem

2004-02-04 Thread Jason Wong
On Wednesday 04 February 2004 20:59, marc serra wrote: When the header function is called I'm correctly redirected on the right page but all my session variables are destroyed. Try session_write_close() before you redirect. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

RE: [PHP] session problem

2004-02-04 Thread Ford, Mike [LSS]
On 04 February 2004 12:59, marc serra contributed these pearls of wisdom: Hi, I'm working on a multi-langage website and i got problem with a fonction which destroy my session :-( I got a file which change my langage like this :

Re: [PHP] Session problem

2003-10-27 Thread Manisha Sathe
ok, i am putting it the code in both files, now my first.php is as follows //start the session - in all the pages session_start(); var_dump(ini_get('variables_order')); var_dump(isset($_SESSION)); var_dump($_SESSION); //store it like that $_SESSION[name]= Rinku; -

Re: [PHP] Session problem

2003-10-27 Thread Jason Wong
On Tuesday 28 October 2003 08:33, Manisha Sathe wrote: ok, i am putting it the code in both files, now my first.php is as follows [code snipped] The code looks OK. Things you can do to try track down the problem: 1) As always, turn on FULL error reporting and check the logs 2) Verify that your

[PHP] Session problem

2003-10-26 Thread Manisha Sathe
I am trying to use session but it seems it does not work on win2k server, the same runs on linux. following is my first php --- ? session_start(); $_SESSION[name]= Manisha; ? -- following is the second php ? session_start(); echo $_SESSION[name]; ?

Re: [PHP] Session problem

2003-10-26 Thread Evan Nemerson
Your Linux server probably has error_reporting set to 0, which is usually a good idea for production environments. To supress the error messages without modifying your php.ini, do error_reporting(0). Take a look in your php.ini file- the error_reporting directive will have lots of comments

Re: [PHP] Session problem

2003-10-26 Thread Manisha Sathe
It works well on linux means it shows me o/p as 'Manisha' but on local Win2kserver, it gives error. I tried to make use of error_reporting(0); in second.php but then screen becomes blank, it does not show me the output as Manisha manisha Evan Nemerson [EMAIL PROTECTED] wrote in message

Re: [PHP] Session problem

2003-10-26 Thread Manisha Sathe
Hi, do u mean to say put this codes in php ? I tried to put it in second.php following is the msg - -- string(5) EGPCS bool(false) Notice: Undefined variable: _SESSION in C:\Project Codes\Vanderveer\www\testPHP\second.php on line 4 NULL Warning:

Re: [PHP] Session problem

2003-10-26 Thread dark
Hi, session_start has to be the first command this time. try again and the result will look better, maybe explaining. so it should look like: ? session_start(); var_dump(ini_get('variables_order')); var_dump(isset($_SESSION)); var_dump($_SESSION); ? angel On Sun, 26 Oct 2003 17:47:38 +0800

[PHP] session-problem

2003-09-01 Thread Juerg Zgraggen
hi got a big session-problem and i have no idea what i'm doing wrong... i have quite a big web-app and i tried to upgrade the code. ex: $frm_id to$_POST['frm_id'] and$HTTP_SESSION_VAR['myId'] to $_SESSION['myId'] ... ect... i changed the register_globals = Off in the php.ini

Re: [PHP] session-problem

2003-09-01 Thread Curt Zirzow
* Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]): now my problem: i wrote in my navigation-frame this code: ?php if( !isset($_SESSION['testint'] ) ) { $_SESSION['testint'] = 1; } $_SESSION['testint']++; print_r($_SESSION); ? after the print_r() i can see my

[PHP] Session problem in back button

2003-08-26 Thread murugesan
Hello all, Now i have a problem in back button. After signing in when I click back button It goes to login page. But when I click the forward button it is going to the main page. How can I prevent this. -murugesan -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Session problem in back button

2003-08-26 Thread Paul Fitzpatrick
. -Original Message- From: murugesan [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 9:55 AM To: murugesan; Cody Phanekham; [EMAIL PROTECTED] Subject: [PHP] Session problem in back button Hello all, Now i have a problem in back button. After signing in when I click back button

Re: [PHP] Session problem in back button

2003-08-26 Thread murugesan
, 2003 10:43 PM Subject: RE: [PHP] Session problem in back button Hi, This will stop them seeing the login once they are in a registered session Only diplay the login form if NOT a registered session variable 'sessionname' (or some other session variable) If (!isset($_SESSION['sessionname

Re: [PHP] PHP Session Problem!.....urgent!

2003-08-14 Thread Robert Cummings
The root of your problem is that sessions generally do not traverse multiple domains. A possible solution is to embed an image in each of the servers which references a PHP script in the other server, and while doing so passes the sessionID along. On server abc.foo.org you might have the

Re: [PHP] PHP Session Problem!.....urgent!

2003-08-14 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] Dear Sir, You don't have to call me that unless you're in the military, also. :) I've been using PHP for business and personal use for a while now, and I have to admit, I'm not just a user anymore and I am a fan. but it's been a while I came across a problem : I use

[PHP] PHP Session Problem!.....urgent!

2003-08-14 Thread babak
Dear Sir, I've been using PHP for business and personal use for a while now, and I have to admit, I'm not just a user anymore and I am a fan. but it's been a while I came across a problem : I use session variables a lot for security purposes but I notice that PHP doesn't hold the session

[PHP] Session problem

2003-07-23 Thread tana dsasa
I have installed an user-login aplication on my website ( http://www.norbertnet.ro ) but i have problems with session controls. I receive all kinds of warnings and i don't know how to interpret them thanks advanced - Want to chat instantly with your online

RE: [PHP] Session problem

2003-07-23 Thread Sævar Öfjörð
You have to specify which warnings and errors if you want someone to help -Original Message- From: tana dsasa [mailto:[EMAIL PROTECTED] Sent: 23. júlí 2003 09:58 To: [EMAIL PROTECTED] Subject: [PHP] Session problem I have installed an user-login aplication on my website ( http

[PHP] Session problem

2003-07-23 Thread tana dsasa
I have installed an user-login aplication on my website ( http://www.norbertnet.ro ) but i have problems with session controls. I receive all kinds of warnings and i don't know how to interpret them, for instance when i want to register a session it is not very good registered thanks advanced

[PHP] Session problem

2003-07-23 Thread tana dsasa
I have installed an user-login aplication on my website ( http://www.norbertnet.ro ) but i have problems with session controls. I receive all kinds of warnings and i don't know how to interpret them, for instance when i want to register a session it is not very good registered thanks advanced

[PHP] Session problem when setting session variables in files that are in different directories

2003-07-23 Thread Mikael Jansson
I am running PHP 4.3.0 on a WinXPpro machine and I recently got problem with sessions. What I am building is a loginsystem and I need to save some parameters in session variables. This works fine on my Win2k pro machine but when I moved it to winXP it creates two different sessions when I set the

[PHP] Session Problem

2003-07-14 Thread Sourabh G
Hi, I am getting a weird session problem in my site. Background of the Problem: -- My site use sessions for user authentication. Site has a Admin Panel where admin can search users and then through a link (which has login and password appended) login as user. On login

Re: [PHP] Session Problem

2003-07-14 Thread Kevin Stone
- Original Message - From: Sourabh G [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 13, 2003 11:15 AM Subject: [PHP] Session Problem Hi, I am getting a weird session problem in my site. Background of the Problem: -- My site use sessions for user

[PHP] Session Problem

2003-07-03 Thread Michael A Smith
Okay, I'm starting session with session_name(PRATTCMS_ADMIN); session_save_path($sess_path); session_start(); This works on one server I have, compiled the almost exact same (except without png and jpeg support for gd). They both use trans_sid. What's going on here? In the session path, the

[PHP] session problem solved.

2003-06-28 Thread anders thoresson
At some places, I was using $_SESSION['u_uname'] as variable name, at other $_SESSION['uname']. Changing to $_SESSION['uname'] through all my accesscontrol.php solved the problem. Now it works on my ISP's server. Question is, though: Why does the faulty script work on my localhost? Next step

[PHP] Session problem

2003-06-24 Thread Karina S
Hello, I have a problem with php sessions. The following code works on my home PC but doesn't work on my office PC. What can be the problem? Thanks! I have 2 files: file1.php: session_stert(); $_SESSION['demo']=test; and file2.php session_start(); echo $_SESSION['demo']; I use PHP 4.3.2.

RE: [PHP] Session problem

2003-06-24 Thread Dan Joseph
Hi, I have a problem with php sessions. The following code works on my home PC but doesn't work on my office PC. What can be the problem? Its possible you have cookies turned off on your office PC. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Session problem

2003-03-17 Thread shaun
Hi, I get the following error when using using the following script to authenticate a user. The login form is inside a frameset, is this whats causing th eproblem, and is there a way round this? Warning: Cannot send session cookie - headers already sent by (output started at

Re: [PHP] Session problem

2003-03-17 Thread Pete James
You need to start the session at the beginning of the script, or use output buffering. Either: ?php session_start(); require(... ... or ?php ob_start(); require(... ... You're trying to output stuff to the screen (which implicitly sends the headers) then trying to send more headers by calling

Re: [PHP] Session problem

2003-03-17 Thread shaun
silly me, testing the query (echo $query;) was actually causing the problem! Pete James [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You need to start the session at the beginning of the script, or use output buffering. Either: ?php session_start(); require(... ... or

[PHP] Session Problem

2003-01-15 Thread Pushpinder Singh Garcha
Hello I am trying to make use of sessions to auhenticate users on the secure parts of the website. Things seems to work fine...but I keep getting this warning. Can some one pl explain what this means ... Warning: Cannot send session cache limiter - headers already sent (output started at

Re: [PHP] Session Problem

2003-01-15 Thread janet
In a message dated 1/15/2003 4:18:10 PM Pacific Standard Time, [EMAIL PROTECTED] writes: I am trying to make use of sessions to auhenticate users on the secure parts of the website. Things seems to work fine...but I keep getting this warning. Can some one pl explain what this means ...

Re: [PHP] Session Problem

2003-01-15 Thread Matt
- Original Message - From: Pushpinder Singh Garcha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Session Problem Can some one pl explain what this means ... Warning: Cannot send session cache limiter - headers already sent (output started at /Users/pgarcha/Sites/edit.php:7

  1   2   3   >