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.
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
---
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,
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.
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
-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
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
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,
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)
-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
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
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
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
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
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
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
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();
-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
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
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
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
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'] ==
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
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
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
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
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?
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
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:
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
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.
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
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 :
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;
-
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
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
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
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:
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
* 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
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.
, 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
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 (
- 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
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:
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
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
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 ...
- 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
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???
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
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
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
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
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
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)
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:
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
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
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
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
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
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
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
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
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
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
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
-
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
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.
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))
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
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:
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
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:
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
-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
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
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.
();
- 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
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
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 - 100 of 133 matches
Mail list logo