Re: [PHP] Sessions question (-enable-trans-sid)

2002-06-05 Thread 1LT John W. Holmes
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

Re: [PHP] Sessions question (-enable-trans-sid)

2002-06-05 Thread Nick Wilson
-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

Re: [PHP] Sessions

2002-06-02 Thread Justin French
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

RE: [PHP] Sessions

2002-06-02 Thread David Freeman
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

Re: [PHP] Sessions

2002-06-02 Thread Glenn Sieb
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

Re: [PHP] Sessions

2002-06-02 Thread Justin French
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

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
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

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Nick Wilson
-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

Re: [PHP] sessions and 'normal practice'

2002-05-29 Thread Ed Gorski
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

Re: [PHP] Sessions and Arrays

2002-05-19 Thread Jason Wong
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

RE: [PHP] Sessions and Arrays

2002-05-19 Thread Navid Y.
-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

Re: [PHP] Sessions

2002-05-18 Thread Miguel Cruz
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-15 Thread Garth Dahlstrom
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),

Re: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Rasmus Lerdorf
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

Re: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Miguel Cruz
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Matthew Walker
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Matthew Walker
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Rasmus Lerdorf
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Miguel Cruz
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Martin Towell
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Matthew Walker
] 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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Rasmus Lerdorf
:[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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Rasmus Lerdorf
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...

2002-05-14 Thread Mark Charette
: 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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Vail, Warren
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread Matthew Walker
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

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-14 Thread David Freeman
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

Re: [PHP] sessions

2002-05-12 Thread Chris Knipe
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;

[PHP] Re: Php Sessions

2002-05-05 Thread Austin Marshall
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',

[PHP] Re: Php Sessions

2002-05-05 Thread Daniel Svanbäck
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.

Re: [PHP] Sessions

2002-05-04 Thread Stuart Dallas
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

Re: [PHP] Sessions

2002-05-04 Thread Alex Francis
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

RE: [PHP] Sessions

2002-05-04 Thread John Holmes
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:

RE: [PHP] SESSIONS

2002-05-02 Thread John Holmes
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

RE: [PHP] Sessions with register_globals = off

2002-04-29 Thread Ford, Mike [LSS]
-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

Re: [PHP] Sessions and Query String Variable Handling

2002-04-28 Thread Dennis Moore
] 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

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
$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.

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
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

Re: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread eric.coleman
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

Re: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread Dennis Moore
] 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

RE: [PHP] Sessions and Query String Variable Handling

2002-04-27 Thread John Holmes
, 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

Re: [PHP] sessions

2002-04-26 Thread Miguel Cruz
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:

Re: [PHP] sessions

2002-04-26 Thread Jan Peuker
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

RE: [PHP] Sessions with register_globals = off

2002-04-26 Thread John Holmes
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]

Re: [PHP] Sessions with register_globals = off

2002-04-26 Thread Erik Price
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

RE: [PHP] Sessions and Load Balancing

2002-04-25 Thread David Piasecki
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

Re: [PHP] sessions protection

2002-04-17 Thread Erik Price
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:

Re: [PHP] sessions

2002-04-02 Thread Jason Wong
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

Re: [PHP] Sessions/Cookies and HTTP Auth

2002-03-27 Thread maxwello
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

RE: [PHP] sessions

2002-03-20 Thread Alastair Battrick
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

RE: [PHP] Sessions

2002-03-20 Thread Kevin Stone
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

RE: [PHP] sessions not so secure..solution?

2002-03-19 Thread Drew Lopucki
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

Re: [PHP] sessions not so secure..solution?

2002-03-19 Thread PHP freak
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

Re: [PHP] sessions not so secure..solution?

2002-03-19 Thread Analysis Solutions
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

RE: [PHP] sessions not so secure..solution?

2002-03-19 Thread SHEETS,JASON (Non-HP-Boise,ex1)
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

Re: [PHP] Sessions

2002-03-18 Thread Andrey Hristov
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

Re: [PHP] Sessions

2002-03-18 Thread pong-TC
[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,

Re: [PHP] Sessions and enable-trans-sid

2002-03-18 Thread Erik Price
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

Re: [PHP] Sessions / MySQL

2002-03-11 Thread Michael Egan
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

Re: [PHP] Sessions interfering with one another

2002-03-11 Thread Richard Baskett
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. -

Re: [PHP] Sessions interfering with one another

2002-03-11 Thread Adam . Whitehead
[EMAIL PROTECTED] rick@baskettcc: case.comSubject: Re: [PHP] Sessions interfering with one another

Re: [PHP] Sessions interfering with one another

2002-03-11 Thread Richard Baskett
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

Re: [PHP] Sessions interfering with one another

2002-03-11 Thread Adam . Whitehead
To: [EMAIL PROTECTED] rick@baskettcc: PHP General [EMAIL PROTECTED] case.comSubject: Re: [PHP] Sessions interfering

Re: [PHP] Sessions Help

2002-03-03 Thread Greg Donald
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

Re: [PHP] Sessions Help

2002-03-03 Thread Nick Wilson
-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

Re: [PHP] Sessions and switching between php and htm documents

2002-02-28 Thread William Lovaton
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

RE: [PHP] Sessions and switching between php and htm documents

2002-02-27 Thread Dave
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

RE: [PHP] Sessions and switching between php and htm documents

2002-02-26 Thread Cal Evans
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

2002-02-26 Thread Cal Evans
: 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

Re: [PHP] Sessions that last for ever

2002-02-18 Thread Erik Price
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

RE: [PHP] Sessions that last for ever

2002-02-17 Thread Jaime Bozza
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

Re: [PHP] Sessions that last for ever

2002-02-16 Thread Erik Price
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

Re: [PHP] Sessions that last for ever

2002-02-16 Thread Nigel Gilbert
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

Re: [PHP] Sessions that last for ever

2002-02-16 Thread Greg Donald
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

Re: [PHP] Sessions that last for ever

2002-02-16 Thread Jason Wong
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

RE: [PHP] Sessions just not working...

2002-02-15 Thread Rick Emery
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

RE: [PHP] Sessions

2002-02-14 Thread Rick Emery
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

Re: [PHP] Sessions

2002-02-14 Thread Andrey Hristov
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:

Re: [PHP] Sessions

2002-02-14 Thread Andrey Hristov
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

Re: [PHP] Sessions

2002-02-14 Thread James Taylor
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

Re: [PHP] Sessions

2002-02-14 Thread Steven Walker
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

Re: [PHP] Sessions and Classes

2002-02-06 Thread Wolfram Kriesing
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

[PHP] Re: PHP Sessions

2002-01-23 Thread Yasuo Ohgaki
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

Re: [PHP] sessions -- behind the scenes??

2002-01-22 Thread Nick Wilson
-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

Re: [PHP] Sessions don't load

2002-01-09 Thread Andrey Hristov
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

RE: [PHP] Sessions

2002-01-09 Thread Johnson, Kirk
(); 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

RE: [PHP] Sessions

2002-01-08 Thread Johnson, Kirk
!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:

Re: [PHP] Sessions

2002-01-08 Thread Ryan Kelley
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

Re: [PHP] Sessions Problems!

2001-12-31 Thread Jim Lucas [php]
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

Re: [PHP] Sessions Problems!

2001-12-31 Thread Phillip M.(Mike) Bishop
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

Re: [PHP] Sessions php and flash5, cookies disabled

2001-12-25 Thread Brian Clark
* 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:

Re: [PHP] Sessions php and flash5, cookies disabled

2001-12-25 Thread Jan Grafström
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

Re: [PHP] sessions var

2001-12-19 Thread Chris Lee
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

Re: [PHP] sessions var

2001-12-19 Thread Mehmet Kamil ERISEN
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

Re: [PHP] sessions var

2001-12-19 Thread Jim Lucas
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

[PHP] Re: php sessions limit

2001-12-18 Thread Chris Lee
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

RE: [PHP] sessions

2001-12-11 Thread PACKER, Steffan
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:

Re: [PHP] sessions

2001-12-11 Thread Anthony
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;

Re: [PHP] sessions

2001-12-11 Thread Anthony
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

Re: [PHP] Sessions Header PROBLEM again!

2001-11-03 Thread Alessandro BOSSI
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

<    4   5   6   7   8   9   10   11   >