RE: [PHP] Session question

2011-05-17 Thread admin
Hansen [mailto:hansen.r...@live.com.au] Sent: Tuesday, May 17, 2011 11:16 PM To: php-general@lists.php.net Subject: RE: [PHP] Session question Unless your adding more code to your included file it isn't worth having it as an include as there is more typing/text involved. For management pur

RE: [PHP] Session question

2011-05-17 Thread Ross Hansen
Tue, 17 May 2011 13:01:19 +0200 > To: php-general@lists.php.net > Subject: Re: [PHP] Session question > > Paul Halliday wrote: > > > Is it OK to have session_start as an include? > > > > Yes. > > > > -- > Per Jessen, Zürich (18.1°C) >

Re: [PHP] Session question

2011-05-17 Thread Per Jessen
Paul Halliday wrote: > Is it OK to have session_start as an include? > Yes. -- Per Jessen, Zürich (18.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session question

2007-03-05 Thread Stut
Alain Roger wrote: the index.php page is the first page where user should logon. it consists of 3 flags (english, french and slovak). when use click on 1 flags, it reload the "index.php" page and changes the login and password words by their relative translation into the flag country selected.

Re: [PHP] session question

2007-03-05 Thread Alain Roger
the index.php page is the first page where user should logon. it consists of 3 flags (english, french and slovak). when use click on 1 flags, it reload the "index.php" page and changes the login and password words by their relative translation into the flag country selected. if user click on LOGO

Re: [PHP] session question

2004-12-07 Thread Greg Donald
On Tue, 7 Dec 2004 11:50:58 -0500, Josh Howe <[EMAIL PROTECTED]> wrote: > I've looked at the php session documentation, and it doesn't look like > there's any way to run code when a session expires. I'd like to do some > cleanup when a user's session expires, is there any way to trap this? > Thanks

RE: [PHP] session question

2003-10-14 Thread Jake McHenry
session_destroy() I'm pretty sure, from what I've read. Jake McHenry Nittany Travel MIS Coordinator http://www.nittanytravel.com > -Original Message- > From: Frank Tudor [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 14, 2003 8:47 PM > To: [EMAIL PROTECTED] > Subject: [PHP] session q

Re: [PHP] session question

2003-06-15 Thread Don Read
On 16-Jun-2003 Matt Palermo wrote: > When a session is started on my server, it gets a name in the > "sessiondata" folder like: > > sess_8sjg4893m9d0j43847dk4o5l2 > > > I was just wondering if all sessions on ANY server start with "sess_"? > Is this a PHP-wide default, or can it be changed (

Re: [PHP] Session Question

2003-05-29 Thread Justin French
Register globals essentially takes the value of $_SESSION['foo'] and creates $foo. It does the same thing for GET, POST, COOKIES, etc. The problem here is that you have no way of telling if $foo was a POST variable, GET, SESSION, or whatever. So, I can choose to append ?admin=1 to one of your UR

RE: [PHP] Session Question

2003-05-29 Thread Johnson, Kirk
> SInce register_globals() is ON on my server, I need to be able to > figure out a way to ensure session security. The single most important thing to do is initialize all your variables. The way to ensure that you have done that is to set the error reporting level to "E_ALL" (which is max). The

RE: [PHP] Session Question

2003-05-29 Thread Wim Paulussen
where register_globals is disabled. " -Oorspronkelijk bericht- Van: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED] Verzonden: Wednesday, May 28, 2003 6:18 PM Aan: Ernest E Vogelsinger CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] Session Question Hello Ernest, SInce register_globals(

Re: [PHP] Session Question

2003-05-29 Thread Pushpinder Singh Garcha
Hello Ernest, SInce register_globals() is ON on my server, I need to be able to figure out a way to ensure session security. Another question I had was that, with register_globals() ON can I still use the $_SESSION to set my variables ? I want to avoid recoding the entire application, so I wan

Re: [PHP] Session Question

2003-03-20 Thread Justin French
Hi, A session is meant to exist on one domain... You could pass the session to another domain to *hold* for you: secure checkout Then the secure domain would be responsible for remembering the old session id, and passing it back to your site when finished... Essentially, I think that each dom

RE: [PHP] Session Question

2003-01-03 Thread Michael J. Pawlowsky
I use both... and the way I see PHP handling it is like this... First call in it will add the SESSID to the hrefs. Next call (page load) if it finds the cookie it will not append SESSID to URL. However if it doesn't it will. There are a few instance were I need to get the SESSION ID and append

RE: [PHP] Session Question

2003-01-03 Thread ed
Sorry I didn't make myself more clear. I only want to use server side sessions. I don't want to have to rely on a client having cookies enabled in their browser. So far having trans_sid is just doing the trick. I can save values into sessions server side and not explicitly create a client side co

RE: [PHP] Session Question

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Does php use cookies for sessions even if you don't explicitly use cookie functions to save session data server side? -- That question doesn't even make sense to me -- cookie functions can't save dat

Re: [PHP] Session Question

2003-01-03 Thread Kevin Stone
In most cases, Yes. Calling session_start() for the first time sets a cookie on the client's computer containing the session id. At the same time the function creates a matching session file on the server. You register whatever variables you want to this file so that when you call session_start

Re: [PHP] Session question

2002-05-25 Thread Jens Lehmann
> > Just be sure you call session_start() on any page you want to access > > session variables. > > > > I have to call this function on each page I use session variable or juste > once ? The statement is pretty clear. You've to call it once on each page you want to access session variables. > >

Re: [PHP] Session question

2002-05-25 Thread Christian Ista
> Just be sure you call session_start() on any page you want to access > session variables. > I have to call this function on each page I use session variable or juste once ? > This assumes the latest version of PHP. The procedure is similar on > older versions, you just have to use session_reg

RE: [PHP] Session question

2002-05-25 Thread John Holmes
Just be sure you call session_start() on any page you want to access session variables. Then you can set a variable by doing $_SESSION["myvariable"] = "hello"; and then you can use $_SESSION["myvariable"] anywhere you want. This assumes the latest version of PHP. The procedure is similar on

Re: [PHP] session question: session.auto_start vs. session_register.

2001-12-05 Thread Jason G.
You may want to check out something like auto_prepend_file. Look at the PHP configuration help. I was thinking that you may be able to include your class definition there - IF auto_prepend_file IS INCLUDED BEFORE session.auto_start starts the session. Otherwise, use auto_prepend_file to incl

Re: [PHP] Session Question

2001-07-15 Thread Rasmus Lerdorf
> Warning: > fopen("/home/tgmalone/sessn-log/0bbaf33ab1c1f9d714e2244459979ec7.txt","a") - > Permission denied in /home/tgmalone/public_html/index.php on line 17 > > The problem is obvious, but I've been searching, searching and wracking my > inadequate brain for a solution and can't find one - can

[PHP] Re:[PHP] Session Question

2001-07-15 Thread Tom Malone
Thanks Christopher! I chmoded the directory to 777 like you said, and it worked fine, but then I took your advice regarding security and put all the data in a MySQL database. Thank you very much for your help! Tom Malone -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Session Question

2001-07-15 Thread Christopher Ostmo
Tom Malone pressed the little lettered thingies in this order... > I'm new to Apache (and PHP) and was unable to find anything approaching an > answer to this problem in the Apache documentation. In fact, I'm not even > sure if I'm having a problem with Apache or with PHP. I am trying to use > se

Re: [PHP] session question

2001-06-22 Thread George Whiffen
Derick, If you're seriously looking at thousands of concurent users (let alone millions) and the kind of budget on hardware and comms that implies, then I'd suggest you seriously look at your own session solution with MySQL or whatever. You can perfectly easily just use your own authentication

Re: [PHP] session question

2001-06-22 Thread Moax Tech List
lf (i mean are the built in functions pretty effieicnt)? That is my primary concern because of the # of usersthanks again! -derick - Original Message - From: "Peter Dudley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 8:47 AM Subject:

Re: [PHP] session question

2001-06-21 Thread Peter Dudley
There is a useful article here: http://phpbuilder.com/columns/ying2602.php3?page=1 As to "up to a million users" logged in at once... don't you wantto have multiple redundant web servers running under a load balancer? If the rest of your system can handle that many concurrent users, then I d

RE: [PHP] session question

2001-05-08 Thread John Vanderbeck
Are you opening a session on each of the pages you want to use the variables? Calling session_register() I believe causes an implicit opening of the session, but on the other pages you have to explicity open the session, or you won't have access to those vars. - John Vanderbeck - Admin, GameDesi

Re: [PHP] session question

2001-04-04 Thread Plutarck
First use session_register(). Then give the variable a value. So just rearrange your code, like this: That should do it. -- Plutarck Should be working on something... ...but forgot what it was. "Jan Grafström" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

Re: [PHP] session question

2001-02-23 Thread Richard Lynch
> index.php where they log in from > session_start(); file://first line of file Okay. > ?> > > > Username   ? You been typing too much XML?... :-) Shouldn't hurt. > Password   /> >     > > code from main.php > session_register(); Register what? You're supposed to register a variable

Re: [PHP] session question

2001-02-23 Thread Chris Lee
some comments on sessions - $PHPSESSID will only be set after the first page refresh. - SID will only be set if your not using cookies. - sessions with not transfer across multiple domain names. - sessions without cookies will not transfer accross full urls. use this code and - sessions will

Re: [PHP] session question

2001-01-30 Thread Teodor Cimpoesu
Hi Mark! On Wed, 31 Jan 2001, Mark Green wrote: > How about this: > > session_start(); > session_register($funky_session_var); > $funky_session_var ++; > print $funky_session_var; the order doesn't matter (as it did in PHPLib sessions). If it doesn't work I guess it's because you have regis

Re: [PHP] session question

2001-01-30 Thread Mark Green
How about this: session_start(); session_register($funky_session_var); $funky_session_var ++; print $funky_session_var; Cheers, ^^@rk Peter Van Dijck wrote: > > Hi, > help: shouldn't this increase the number every time you reload the page? > > session_start(); > $funky_session_var ++; >