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
Hi Tedd, tedd schrieb: 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. Thanks :-) By the way: I tried your initial code and I

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,

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 the

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,

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

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

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

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 a

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

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

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'] ==

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?

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

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: [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.

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

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

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

RE: [PHP] Session problem in back button

2003-08-26 Thread Paul Fitzpatrick
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'])) { //Display login form code goes here } Cheers.

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] 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 (

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

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:

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

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

Re: [PHP] Session problem

2003-01-01 Thread Justin French
on 02/01/03 9:46 AM, Andrew Williams ([EMAIL PROTECTED]) wrote: I have been messing with PHP 4 on a windows 2000 machine using apache and am having trouble getting sessions to run. I'm going to assume PHP 4.1 I'm also going to assume you're allowing cookies on your browser???

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
You don't need to accept cookies for sessions. That's the beauty of it. PHP automatically appends ?PHPSESSID=$sessid to URLs. If you do header(Location: abc) however you will need to add the seession ID to the URL. You cannot read a session var on the same page that you set it I found. To get

Re: [PHP] Session Problem

2003-01-01 Thread Justin French
on 02/01/03 11:42 AM, Michael J. Pawlowsky ([EMAIL PROTECTED]) wrote: You don't need to accept cookies for sessions. That's the beauty of it. PHP automatically appends ?PHPSESSID=$sessid to URLs. only if you compile with trans_sid (he didn't) or if you physically add the SID to each LINK

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
eeek, that's a whole lotta code for him to learn just to try and get sessions working, don't you think?? [mega snip] Justin Most it is HTML output... But If I'm not mistaken... and I might be... but wasn't this a thread that started about securing web pages? So basically I gave him my

Re: [PHP] Session problem

2003-01-01 Thread Matt Sturtz
My php.ini file session section looks like this [snip] ; The path for which the cookie is valid. session.cookie_path = c:\tmp On our system, this is /... This is not what you think it is-- this is the WEB path the cookie is valid for... That is, on our system, the browser will send the

Re: [PHP] Session Problem

2003-01-01 Thread Justin French
on 02/01/03 11:55 AM, Michael J. Pawlowsky ([EMAIL PROTECTED]) wrote: Most it is HTML output... But If I'm not mistaken... and I might be... but wasn't this a thread that started about securing web pages? So basically I gave him my solution to it. And I didn't charge the $150/hr consulting

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK let me give him something simpler to start with No Cookies needed.. Just to test... Make sure you have session.name set to PHPSESSID. Look at phpinfo() output to make sure. Lets have two pages Page 1 start (page1.php)

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
Just so I know who started this thread, is he even still in this thread, or is this just amongst ourselves now. :-) Hey sorry, what do you expect on the 1st of January. Cheers, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
I started it and yes I am still here and listing to your comments. Thanks Justin for keeping things simple for this simpleton. Ill try your suggestion in a little while Mike, I also at work at the moment and need to slip some of this stuff in whilst I am working. I will keep you posted as to

RE: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
Mike, This the result Array ( [theSess] = This is my session ) Andrew -Original Message- From: Michael J. Pawlowsky [mailto:[EMAIL PROTECTED]] Sent: Thursday, 2 January 2003 12:07 To: [EMAIL PROTECTED] Subject: Re: [PHP] Session Problem OK let me give him something simpler

RE: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK so sessions are working... cool... So now you need to track down a your cookie problem. Start of by setting your browser to ask you to accept all cookies. EVEN session cookies. In IE it would be Internet Options-Privacy Tab Advanced... Prompt and override defaults... The take away the

RE: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
Mike, results are Array ( ) Andrew *** REPLY SEPARATOR *** OK so sessions are working... cool... So now you need to track down a your cookie problem. Start of by setting your browser to ask you to accept all cookies. EVEN session cookies. In IE it would be Internet

RE: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK But did your browser ask you if it was ok to set a cookie? (You did do the changes in privacy) IE or Netsape (what version)? Start with a fresh browser.. meaning close all browser windows and the start up your browser again. We need to see if the problem is setting the cookie or reading

RE: [PHP] Session Problem

2003-01-01 Thread Andrew Williams
It appears that it is a problem with the Browser, I did as you suggested and changed the Privacy Settings Advanced to Override Automatic Cookie Handling and selected Prompt for both First and third party cookies. Restarted the browser ie closed all browser windows and restarted IE 6 version

Re: [PHP] Session Problem

2002-11-22 Thread Marek Kilimajer
Seems like the remote server has register_globals off. You must use $_GET, $_POST, $_SESSION ... Cesar Aracena wrote: Hi all, I'm having this strange issue with a remote server. I'm trying to create a session control for administrative use which works fine in my PC but once I upload these

Re: [PHP] Session Problem

2002-11-22 Thread 1LT John W. Holmes
Is it your register_globals setting? ---John Holmes... - Original Message - From: Cesar Aracena [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 22, 2002 2:59 PM Subject: [PHP] Session Problem Hi all, I'm having this strange issue with a remote server. I'm trying to

Re: [PHP] Session problem

2002-10-15 Thread Jonathan Sharp
Sorry... session.cookie_domain in php.ini Make sure you can also write to /tmp -js Ferhat Can wrote: Dear All, I have a problem and need your help. I use PHP 4.2.3, Apache 1.3.27 and a local version of Red Hat. Here is the problem: I have a web site that depends on Session, but the

Re: [PHP] Session problem

2002-10-15 Thread Jonathan Sharp
Try setting the session.domain in your php.ini... -js Ferhat Can wrote: Dear All, I have a problem and need your help. I use PHP 4.2.3, Apache 1.3.27 and a local version of Red Hat. Here is the problem: I have a web site that depends on Session, but the Session ID seems to be regnerated

Re: [PHP] Session problem

2002-10-15 Thread Ferhat Can
Sharp [EMAIL PROTECTED] To: Ferhat Can [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 6:55 PM Subject: Re: [PHP] Session problem Sorry... session.cookie_domain in php.ini Make sure you can also write to /tmp -js Ferhat Can wrote: Dear All, I have a problem

Re: [PHP] Session problem

2002-10-15 Thread Jonathan Sharp
- From: Jonathan Sharp [EMAIL PROTECTED] To: Ferhat Can [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, October 15, 2002 6:55 PM Subject: Re: [PHP] Session problem Sorry... session.cookie_domain in php.ini Make sure you can also write to /tmp -js Ferhat Can wrote: Dear All, I have

Re: [PHP] Session problem

2002-09-09 Thread John Wards
h I dunno why but if I returned $data from my function and registered it out side the function it works fine and yes my session_start() is above my function John I am having problems with my sessions. This function registered my username password and userid in the session no problem.

Re: [PHP] Session problem

2002-09-09 Thread @ Edwin
I think this one worked because if($count ==1){ $user_data = mysql_fetch_row($user_res); $user_id = $user_data[0]; // --- of this if(!session_is_registered(user_id)) session_register(user_id); if(!session_is_registered(username))

RE: [PHP] session problem

2002-07-08 Thread Naintara Jain
PROTECTED] Subject: Re: [PHP] session problem You have to set the variables before using session_register(). ?php session_start(); $var = Yo; session_register(var); ? If you try registering a variable that has no value, then of course no value can be carried over to the next page. :o) Martin

Re: [PHP] Session problem

2002-04-15 Thread Nick Winfield
On Mon, 15 Apr 2002, Torkil Johnsen wrote: I get this errormessage when trying to make my logon work: Warning: Cannot send session cache limiter - headers already sent (output started at /path/to/my/little/session.inc:9) in /path/to/my/little/session.inc on line 10 line 10 contains:

Re: [PHP] Session problem

2002-04-15 Thread Janet Valade
The message means that that your script produced some output before the session_start. You have to use session_start before any output. The message shows where the output was started (line 9 of the given file). Sometimes output is started accidentally by having a blank space before your ?php

Re: [PHP] SESSION PROBLEM

2002-03-19 Thread Erik Price
On Tuesday, March 19, 2002, at 02:56 PM, karthikeyan wrote: What does this error means - Warning: Cannot send session cookie - headers already sent by (output started at /home/web/public_html/karthik1.php:7) in /home/web/public_html/karthik1.php on line 35 Warning:

Re: [PHP] session problem

2002-02-14 Thread Andrey Hristov
What do you mean : session persist? Whe you close the browser the file(the most common case) is not deleted till the session expires. So if the expire time is 30 min it will stay in the /tmp for minimum 30 mins(the session garbage collector is not started on every request). The cookie which is

Re: [PHP] session problem Warning: open(/tmp\sess_..., O_RDWR) failed: m (2)

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Freddy blurted I am getting the folloing error whenever I try to open a session. Warning: open(/tmp\sess_0929ece4254c982def371c8f1ccd8164, O_RDWR) failed: m (2) It seems like a permissions issue to me but I do not know where to

Re: [PHP] session problem Warning: open(/tmp\sess_..., O_RDWR) failed: m (2)

2002-01-24 Thread Mike Frazer
Win2k is the same as NT and does, indeed, have permissions. Very different from *nix permissions but they do exist. Mike Frazer Nick Wilson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Freddy

Re: [PHP] session problem Warning: open(/tmp\sess_..., O_RDWR) failed: m (2)

2002-01-24 Thread Freddy
Seems that I had a few php.ini files finally found the right one and changed the path in it and deleted the others. Thanks Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Freddy blurted I am getting the folloing error whenever I try to open a session.

RE: [PHP] Session problem

2001-11-16 Thread Daniel Alsén
(); - Daniel -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: den 16 november 2001 15:40 To: Daniel Alsén Subject: Re: [PHP] Session problem I think you can set a new session id using session_start() so if you need a new id just destroy the old one using

RE: [PHP] Session Problem

2001-08-23 Thread Rudolf Visagie
Try session_register(count); Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 04:42 To: [EMAIL PROTECTED] Subject: [PHP] Session Problem I can't get session variables to work I know this has been done to

RE: [PHP] Session Problem

2001-08-23 Thread Lawrence . Sheed
PROTECTED] Subject: RE: [PHP] Session Problem Try session_register(count); Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 04:42 To: [EMAIL PROTECTED] Subject: [PHP] Session Problem I can't get session

  1   2   >