PM
Subject: Re: [PHP] Sessions question (-enable-trans-sid)
Hmmm I've had a problem with this: I have --enable-trans-sid but I
see url appends on my browser when I *know* cookies are working.
Personally I cant say this is a bad thing... not all browsers enable
cookies and they can
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then 1LT John W. Holmes declared
I guess PHP just can't tell that cookies are enabled. I'm sure the method
isn't full proof. Your sessions get through either way, so what's the big
deal?
Mainly in SEO stuff. If an SE like google as a
sitepoint.com has a nice one on restricting pages with login/sessions, etc
by Kevin Yank.
Justin French
on 03/06/02 8:38 PM, r ([EMAIL PROTECTED]) wrote:
Hey Everyone,
Been going through the manual and the book PHP BlackBook and am totally
confused about sessions.
Searched google and
Has anybody here used an online turoral that they feel is
good for a newbie or has done wonders in helping you on when
you were learning php? if so please send me the website name / URL.
http://www.devshed.com/Server_Side/PHP/UserAuth/page1.html
I found this one quite good - not so
At 08:32 AM 6/3/2002 +1000, Justin French posted the following...
sitepoint.com has a nice one on restricting pages with login/sessions, etc
by Kevin Yank.
http://www.WebmasterBase.com/article/319
Is that the one you're referring to, Justin? It seems pretty good.. :)
Glenn
---
The original
YES
It's been the basis of everything I've done so far with sessions.
Justin
on 03/06/02 9:05 AM, Glenn Sieb ([EMAIL PROTECTED]) wrote:
At 08:32 AM 6/3/2002 +1000, Justin French posted the following...
sitepoint.com has a nice one on restricting pages with login/sessions, etc
by Kevin
1. This is done for users that don't use cookies. Believe it or not but
there are people out there that are afraid of cookies and automatically
turn them off. Without appending the sessionid to the end of the URL,
sessions won't work for these people. Now how does your host append to the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Ed Gorski declared
1. This is done for users that don't use cookies. Believe it or not but
there are people out there that are afraid of cookies and automatically
turn them off. Without appending the sessionid to the end of
Well that must mean that they are using session_name() and session_id(). I
really don't know why they are using that (considering it'll add
unnecessary overhead of calling session_name(),session_id() twice). My
guess is that they don't have a clue about the SID constant that
automatically
On Monday 20 May 2002 04:31, Navid Y. wrote:
Hello Everyone,
How do I send a single array, with many values, through sessions?
For example, I might have the following:
[snip]
Why? don't you just try it? Surely it's quicker to write some simple test code
than to ask on the list?
By
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 19, 2002 4:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions and Arrays
On Monday 20 May 2002 04:31, Navid Y. wrote:
Hello Everyone,
How do I send a single array, with many values, through sessions
On Sun, 19 May 2002, Navid Y. wrote:
Simple question: Will registering a variable twice, using
session_register(), reset the value of the variable to a different
value?
session_register() adds a variable to the list of variables that are
tracked by the session. If the variable has already
maintain state accross requests. This is done in 3 different ways.
1. Cookies
2. URL Mangling
3. HTTP Authentication
#4 Passing a SID/Session info in hidden fields, but it means
you must push every page move through a submit (which can be
done with Javascript, image buttons, etc),
Use standard HTTP authentication over SSL - that's the only other way.
On Tue, 14 May 2002, Matthew Walker wrote:
We have a shopping cart product we're developing in PHP, and I've
recently come across I dilemma that I need to find a reliable solution
to.
Many of the people who will be
On Tue, 14 May 2002, Matthew Walker wrote:
Many of the people who will be shopping on our sites have cookies
disabled, which presents a problem when using sessions. Now, I am aware
of the fact that we could append the SID constant to every URL, but this
will not work for us. None of our sites
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions Without Cookies or SID Passing...
On Tue, 14 May 2002, Matthew Walker wrote:
Many
Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:42 PM
To: Matthew Walker
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions Without Cookies or SID Passing...
Use standard HTTP authentication over SSL - that's the only other way.
On Tue, 14 May 2002, Matthew Walker wrote:
We have
is, and other related information.
Matthew Walker
Senior Software Engineer
ePliant Marketing
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 5:42 PM
To: Matthew Walker
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions Without Cookies
On Tue, 14 May 2002, Matthew Walker wrote:
The sites are not dynamic, but the shopping cart /is/. The problem is,
if people don't have cookies on, when they return to the site to order
more products, they loose the SID that has been appended to the links
inside the cart, and thus loose the
Walker
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Without Cookies or SID Passing...
I am understanding the problem perfectly. HTTP is stateless. You want to
maintain state accross requests. This is done in 3 different ways.
1. Cookies
2. URL Mangling
3. HTTP Authentication
You said you
]
Subject: RE: [PHP] Sessions Without Cookies or SID Passing...
I am understanding the problem perfectly. HTTP is stateless. You want
to
maintain state accross requests. This is done in 3 different ways.
1. Cookies
2. URL Mangling
3. HTTP Authentication
You said you did not want to do 1 or 2
:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 10:04 AM
To: Matthew Walker
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Without Cookies or SID Passing...
I am understanding the problem perfectly. HTTP is stateless. You want to
maintain state accross requests. This is done in 3
Could you explain how this could be accomplished, because I'm not
understanding how to do it.
As I understand HTTP Authentication (correct me if I'm wrong), the
user's computer still has to send a 'username/password' pair to perform
the authentication. I can't see how this could be used to
: RE: [PHP] Sessions Without Cookies or SID Passing...
You're missing one method - using the user's IP address
It's not a guaranteed fool-proof method, but if you don't want to use
cookies or the URL, then this sorta works.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
PROTECTED]]
Sent: Tuesday, May 14, 2002 5:30 PM
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Without Cookies or SID Passing...
If it ain't foolproof then only a fool would use it ...
IP addresses are just about the worst way to identify anyone.
-Original Message-
From: Martin Towell
Engineer
ePliant Marketing
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 6:26 PM
To: Matthew Walker
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Without Cookies or SID Passing...
Could you explain how this could be accomplished, because
You're missing one method - using the user's IP address
It's not a guaranteed fool-proof method, but if you don't
want to use cookies or the URL, then this sorta works.
Unless there's a firewall using NAT or a proxy cache involved. I know
for a fact that our internal network only ever
Ok,
Let's see if I learned anything
- Original Message -
From: Jas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 2:30 AM
Subject: [PHP] sessions
SNIP
$msg = p class=\content\You have been authorized to make changes to
the
web site./p;
Daniel SvanbäCk wrote:
Hi
I have a problem. I can't send the session_id to the next page. It worked
before (when I had an old version of php, now I have 4.2.0). It can send the
session_id() if it's a link, but not a header(). If it is a header I have to
do this:
define('MYSID',
I'm using winxp and php.. can this be the problem. I solved the problem by
donwgrade to php 4.1.0..
Austin Marshall [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Daniel SvanbäCk wrote:
Hi
I have a problem. I can't send the session_id to the next page.
On 4 May 2002 at 18:22, Alex Francis wrote:
Warning: open(/tmp\sess_51d4849918d3ffe4d2cc70013d678f6b, O_RDWR)
failed: No such file or directory (2)
Does the directory it's trying to write to exist? Seeing as you've posted this
question, I'll
assume that you don't understand the error
You'r right of course, the directory didn't exist. Working alright now.
--
Alex Francis
Cameron Design
35, Drumillan Hill
Greenock PA16 0XD
Tel 01475 798106
[EMAIL PROTECTED]
http://www.camerondesign.co.uk
This message is sent in confidence for the addressee only. It may contain
legally
Yes, modify your php.ini file to tell PHP where to write the session to.
It's trying to write it to /tmp, which is either not a valid file, or
PHP doesn't have permissions to write a file there.
---John Holmes...
-Original Message-
From: Alex Francis [mailto:[EMAIL PROTECTED]]
Sent:
You can't mix PHP and JavaScript. They are two entirely different
languages that execute in completely different ways. PHP executes to
create the HTML _AND_ JavaScript. One PHP is finished; it sends you the
code and is finished. It has no interaction with the HTML or JavaScript
except to create
-Original Message-
From: Padraig Kitterick [mailto:[EMAIL PROTECTED]]
Sent: 26 April 2002 20:16
To: [EMAIL PROTECTED]
Subject: [PHP] Sessions with register_globals = off
Am in need of help or I will loose my sanity!!! Im runnin Php
4.1.2 with
Apache 1.3.22 on Win32 with
]
Sent: Saturday, April 27, 2002 11:33 PM
Subject: RE: [PHP] Sessions and Query String Variable Handling
Not for server side. You can use a META REFRESH on the client side, but
I personally find that ugly.
This is why I always write my functions so that they don't output
anything. They just assign
$page = $_SERVER[SERVER_NAME] . $_SERVER[SCRIPT_NAME] .
$_SERVER[QUERY_STRING];
That will recreate the URL that the user clicked on. Save that to a
variable before you check for a session. Once you start a session or
verify that one exists, use header() to send them back to that page.
You'll have to add an http:// to that string, too.
---John Holmes...
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 27, 2002 5:50 PM
To: 'Dennis Moore'; [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions and Query String Variable Handling
$page
You can also use
$page = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
- Original Message -
From: John Holmes [EMAIL PROTECTED]
To: 'Dennis Moore' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, April 27, 2002 8:49 PM
Subject: RE: [PHP] Sessions and Query String
]
To: 'Dennis Moore' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, April 27, 2002 8:49 PM
Subject: RE: [PHP] Sessions and Query String Variable Handling
$page = $_SERVER[SERVER_NAME] . $_SERVER[SCRIPT_NAME] .
$_SERVER[QUERY_STRING];
That will recreate the URL that the user clicked on. Save
, and just echo
that variable where ever I need to.
---John Holmes...
-Original Message-
From: Dennis Moore [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 27, 2002 5:24 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions and Query String Variable Handling
On Fri, 26 Apr 2002, Fifield, Mike wrote:
Is there a way to return the total number of sessions currently registered
on a server?
You could count the files in the session store directory.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
If you use files you might get the contens of the folder where sessions
stored and just count.
Jan
- Original Message -
From: Fifield, Mike [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 5:57 PM
Subject: [PHP] sessions
Is there a way to return the total number of
Make sure you are using session_start() on each page and you should be
using $_SESSION[var] = value;, not $HTTP_SESSION_VARS...
---John Holmes...
-Original Message-
From: Padraig Kitterick [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 12:16 PM
To: [EMAIL PROTECTED]
On Friday, April 26, 2002, at 03:16 PM, Padraig Kitterick wrote:
This is annoying as everyhwhere I read about sessions, Im told that if
register_globals is off, I shouldnt use session_register(), all I need
to do
is:
$HTTP_SESSION_VARS[myVar] = $myVar;
This is not what the
We use sessions on one of our extremely large (read: may load balanced
servers). Our solution is to store session data in the database. See the
following:
http://www.php.net/session-set-save-handler
David Piasecki
-Original Message-
From: Uijlenbroek, Maurice
[mailto:[EMAIL
On Wednesday, April 17, 2002, at 04:40 PM, Vladislav Kulchitski wrote:
Basically, let's say the cracker know that in my application I create a
session variable named auth_user for valid users. Is there a way to
hack into it if he knows this session variable name?
Example:
On Wednesday 03 April 2002 21:34, R. Lindeman wrote:
i have a problem with PHP sessions and maybe some of you could help what do
i need in my php.ini to get them to work !!!
You just need to edit it until it works.
Seriously, if you're going to keep your problem a secret nobody will be able
When using cookies, if you don't set an expiration time, the cookie is only
good until the session expires. It doesn't get saved, and it disappears
when the user closes their browser.
Many browsers have different settings/preferences for session cookies, and
because they don't get saved to
There must be some whitespace in the script before the opening ?php
Lose that and the error should go with it.
Alastair Battrick
Senior Developer
Lightwood Consultancy Ltd
http://www.lightwood.net
I am kind of confused by an error I am getting when trying to destroy a
session. Here is the
on line 10? Curious, you don't even have 10 lines there. Do you
have lines above the PHP tag ?. The ? Must start the first character
on the first line of the page otherwise the browser will interpret it as
either Content-type: text/plain or Content-type: text/html and give you
a headers
I can't answer your overall question but I can tell you that a 'resourceful'
hacker can also easily spoof an IP address, or so I'm told ;)
Why not just have the entire session encrypted. The user could browse
around the catalog sessionless and as soon as a cart was necessary (wants to
put
I came to the PHP list today with the same question/problem.
My cart doesn't require cookies. If the user doesn't have them it just puts the
SESSID in the URL. (Good ol PHP!)
BUT - it's actually happening often that someone linking to our store
from their own website is including the long
On Tue, Mar 19, 2002 at 08:37:43AM -0800, PHP freak wrote:
BUT - it's actually happening often that someone linking to our store
from their own website is including the long SESSID in the URL
that links to us, to that everyone who follows that link from
that website is getting the same
PROTECTED]]
Sent: Tuesday, March 19, 2002 10:03 AM
To: PHP List
Subject: Re: [PHP] sessions not so secure..solution?
On Tue, Mar 19, 2002 at 08:37:43AM -0800, PHP freak wrote:
BUT - it's actually happening often that someone linking to our store
from their own website is including the long SESSID
not the session is registered but a variable in the session jar.
Andrey
- Original Message -
From: Morten Nielsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 7:45 PM
Subject: [PHP] Sessions
Hi,
I got a page that is being reloaded a lot. In the bigging I
[EMAIL PROTECTED] writes:
Hi,
I got a page that is being reloaded a lot. In the bigging I register a
Session variable with the SESSION_START and SESSION_REGISTER functions.
Is it wrong that I keep registering the session?
Should I also unregister the session at the bottom of the page?
Regards,
On Saturday, March 16, 2002, at 09:04 PM, [EMAIL PROTECTED] wrote:
I have compiled php with the enable-trans-sid (for the site I am using I
can NOT use cookies)
when I start a session or store something in _SESSION['varname']
varname
can not be accessed on other pages
nor is
Chris,
There's a fairly comprehensive example of this included within
'Beginning PHP4' (ISBN 1861003730) - I think in Chapter 13.
You can download the code examples for this book from
http://p2p.wrox.com/php/ without actually buying the book - though I've
found this book and the more recent
Can't you just rename the cookie something else for your piece of software?
They wont write over each other if they have different names...
Rick
You will never be happy if you continue to search for what happiness
consists of. You will never live if you are looking for the meaning of life.
-
[EMAIL PROTECTED]
rick@baskettcc:
case.comSubject: Re: [PHP] Sessions interfering
with one another
the people you
can, As long as ever you can. - John Wesley
From: [EMAIL PROTECTED]
Date: Tue, 12 Mar 2002 09:44:01 +0930
To: Richard Baskett [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions interfering with one another
Sounds good, but I'm not actually setting
To: [EMAIL PROTECTED]
rick@baskettcc: PHP General
[EMAIL PROTECTED]
case.comSubject: Re: [PHP] Sessions interfering
On Sun, 3 Mar 2002, Ramesh Nagendra Pillai wrote:
I am very new to PHP develope Can any one please help
me to use session variables
I am able to register an variable
My probelm is how to get the values of that registered
variable in the successive pages?
You probably need to pass the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Ramesh Nagendra Pillai declared
I am very new to PHP develope Can any one please help
me to use session variables
I am able to register an variable
My probelm is how to get the values of that registered
variable in the successive
Did you register de variable?
look for session_register() in the manual.
You can see this articles too:
http://www.phpbuilder.com/columns/mattias2312.php3
http://www.phpbuilder.com/columns/mattias2105.php3
William.
El mar, 26-02-2002 a las 23:36, Dave escribió:
login.htm
tested the $HTTP_SESSION_VARS prior to sending, set just fine. changed the next
page to php and tested for the session var... nothing.
[in login.php]
?
session_start();
# database check in here
if(match){
$HTTP_SESSION_VARS[UserID_session]=$txtUserID; #from form field for user
Did you test and make sure the variable is set?
login.php
session_start();
$HTTP_SESSION_VARS[username]=$formUserName;
echo $HTTP_SESSION_VARS[username]
header(Location: displaypage.htm);
Also, for grins ang giggles, make the middle page in the chain a HP, start
: RE: [PHP] Sessions and switching between php and htm documents
Did you test and make sure the variable is set?
login.php
session_start();
$HTTP_SESSION_VARS[username]=$formUserName;
echo $HTTP_SESSION_VARS[username]
header(Location: displaypage.htm);
Also
On Saturday, February 16, 2002, at 03:10 PM, Nigel Gilbert wrote:
But very many commercial sites, including Apple and Amazon to name two,
do exactly this. When you re-enter the site they 'remember' who you
are using a cookie. In my case, I'm building a multi-player strategy
game and
Price
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions that last for ever
But very many commercial sites, including Apple and Amazon to name two,
do exactly this. When you re-enter the site they 'remember' who you are
using a cookie. In my case, I'm building a multi-player strategy game
On Saturday, February 16, 2002, at 07:43 AM, Nigel Gilbert wrote:
By default, a session (created with session_register) seems to last
just as long as the user has their browser open. If a user quits the
browser, the session is automatically destroyed.
I want a session to last
But very many commercial sites, including Apple and Amazon to name two,
do exactly this. When you re-enter the site they 'remember' who you are
using a cookie. In my case, I'm building a multi-player strategy game
and while I want the players to go through an initial briefing the first
time
But very many commercial sites, including Apple and Amazon to name two,
do exactly this. When you re-enter the site they 'remember' who you are
using a cookie. In my case, I'm building a multi-player strategy game
and while I want the players to go through an initial briefing the first
On Sunday 17 February 2002 04:10, Nigel Gilbert wrote:
But very many commercial sites, including Apple and Amazon to name two,
do exactly this. When you re-enter the site they 'remember' who you are
using a cookie. In my case, I'm building a multi-player strategy game
and while I want the
Did you register each variable individually? Did you have a session_start()
as the first line of each page?
-Original Message-
From: Norman Cates [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 6:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Sessions just not working...
I
It means you've already sent some HTML. Sessions stuff must be sent first
-Original Message-
From: Morten Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 12:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Sessions
Hi,
I try to use sessions to keep track if a user is
This means that you do some output before calling session_start() or
session_register();
check for echo()s or blanks before ? . Also there have not to be any html before ?
when using sessions.
Best regards,
Andrey Hristov
- Original Message -
From: Morten Nielsen [EMAIL PROTECTED]
To:
Maybe you can put a small iframe in the HTML which will refresh on some basis (3secs
for example), and in the HTML of this
html you do the popup - window() or alert(). what you choose. the message which is
sent(from the peer1 to server) is stored in db
(or file) but have to stored somewhere
The thing about this is, what variables would I use regarding all active
sessions, and the data that is stored in each session? Say there are three
people logged on, each with the variable $name stored in their session which
is their username - How do I get a list of all the names from the
On Thursday, February 14, 2002, at 11:06 AM, Andrey Hristov wrote:
Maybe you can put a small iframe in the HTML which will refresh on some
basis (3secs for example), and in the HTML of this
html you do the popup - window() or alert(). what you choose. the
message which is sent(from the
What is the proper way to transfer class properties through-out my
pages...
if (!session_is_registered(myCart)){
$myCart = new ShoppingCart();
(some other stuffs...)
session_register(myCart);
}
you dont need to do this,
else {
$myCart = new ShoppingCart();
}
as
David Orn Johannsson wrote:
I'm Trying to make a simple authentication for a news-system.
I have a encrypted passwd in a db that i fetch and compare to the user
input and if it compares ok then the user sees the catagories that he
can select from.
The thing is I'm not quite getting the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Johnson, Kirk blurted
By default, session data is stored in a file in /tmp, but you can specify
another place, like a database. PHP generates a session id, which is part of
the filename of the session file. PHP passes a cookie
when session_start() is called for a first time, it generates session_id and set a
cookie for the browser. The common name for the
cookie is PHPSESSID. You receive it on the refresh, because after the first load this
cookie is known by the browser. When you hit
the page for a first time, there
();
echo PHPSESSID is $PHPSESSID;
Kirk
-Original Message-
From: Ryan Kelley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 7:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions
I actually fixed the problem with the following code:
session_start
!sess_id| means that $sess_id has been registered, but it hasn't been
assigned a value. Is register_globals on or off in php.ini? Did you assign a
value to $sess_id?
Kirk
-Original Message-
From: Ryan Kelley [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 8:59 PM
To:
I actually fixed the problem with the following code:
session_start();
$HTTP_SESSION_VARS['sess_id']=$PHPSESSID;
Except that it will not assign an actual value until i hit refress on my
browser. Any ideas for a fix?
Thanks,
Ryan Kelley
Kirk Johnson [EMAIL PROTECTED] wrote in message
when you say that nothing changed, does that include permissions on the tmp
session directory, the httpd.conf file or any related configurations?
Jim
- Original Message -
From: Phillip M.(Mike) Bishop [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 31, 2001 2:58 AM
PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, December 31, 2001 12:57 PM
Subject: Re: [PHP] Sessions Problems!
when you say that nothing changed, does that include permissions on the
tmp
session directory, the httpd.conf file or any related configurations?
Jim
- Original Message -
From
* Jan Grafström ([EMAIL PROTECTED]) [Dec 25. 2001 10:41]:
The url string looks like this on php-page (sent from flash5):
mypage.php3?SID=PHPSESSID=193a33f9b7421c17302d1bd58478b20b?.
From mypage.php3 I pass sid using .SID. than on second page the string is
changed to:
Thanks Brian!
There is no differens using only .SID. or .$SID.
and this line :input type=\hidden\ name=\SID\ value=\.SID.\
automatically givs this responsestring in the urlfield of your browser
(IE6):
second.php3?SID=PHPSESSID%3D193a33f9b7421c17302d1bd58478b20bvar3=1
I will try to manipulate the
as long as your start the session on the new page everything will work. are
your clients not using cookies? and you have trans-sid enabled? you'll need
to pass the SID to the new page then obv.
--
Chris Lee
[EMAIL PROTECTED]
William Sanchez Sanchez [EMAIL PROTECTED] wrote in message
One problem that I have with sessions it that if your login
page is in www.yoursite.com and the you pop a page
yoursite.com I think the Session is not recognized.
just a hint.
--- William Sanchez Sanchez [EMAIL PROTECTED] wrote:
I need some help with sessions. I need to pass variables
to a
PROTECTED]
Sent: Wednesday, December 19, 2001 2:18 PM
Subject: Re: [PHP] sessions var
One problem that I have with sessions it that if your login
page is in www.yoursite.com and the you pop a page
yoursite.com I think the Session is not recognized.
just a hint.
--- William Sanchez Sanchez
its irrelevant. now there is a file system dependancy. in linux is inodes,
not enough and you'll have some problems, win2k I dont know.
--
Chris Lee
[EMAIL PROTECTED]
Aaustin [EMAIL PROTECTED] wrote in message
You need to have
session_start();
at the top of each page that needs to use the session vars, also check that
session.use_trans_sid is set to 1 in your ini file
hope this helps!
-Original Message-
From: Anthony [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 3:54 PM
To:
thanks for the starter. I have session.use_trans_sid = 1 in my php.ini,
I also have session_start() at the beginning of both pages. Now
$HTTP_SESSION_VARS is there, but its a blank array.
print_r($HTTP_SESSION_VARS); yields- Array ( )
the code I have at one page is
$z=some data;
Thank you very much, I got it to work. What I didn't understand was
that when registering the session var I was not registering the var's
value, only the pointer. This makes all kinds of sence now. Thanks!
- Anthony
Steffan Packer wrote:
You need to have
session_start();
at the
Hi, thank you for your attention
This is only a sample to understand how the session work, in order to use them
in a more complex web applications
The goal is verify how to pass the var $count through each of the three pages
by the php session function
Particularly, when as usually, a client
801 - 900 of 1042 matches
Mail list logo