Re: [PHP] Re: SESSION newbie question ***STILL UNRESOLVED***

2002-07-03 Thread php
I did as you said Richard, however I still encounter the same problem, you can take a look at the code in test.txt, I updated it too. For other people, here is the original message: Hello, I got this example of sessions: www.net.co.cr/test/test.php , however, as you can see in the code at /t

[PHP] Re: SESSION newbie question

2002-07-02 Thread Richard Lynch
>www.net.co.cr/test/test.php frame session test '; } if ($QUERY_STRING == "1.html") { echo "This is just a dummy frame."; } if ($QUERY_STRING == "2.html") { echo ""; echo "The value of \$_SESSION['tree'] is:"; echo gettype($_SESSION['tree']); echo ""; } ?> -- Like Music?

[PHP] Re: session duration

2002-07-02 Thread Ivan Voras
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:20020702092207.GERZ903.sccrmhc03.attbi.com@[192.168.1.103]... > >Is there a way to programatically (inside a session) change session duration > >for the current session only? (using cookie-based sessions) ? > > Wild Guess: > > What if you u

[PHP] Re: session dropping data

2002-07-02 Thread Richard Lynch
>'lo, > >anybody ever experience this: > >1. i start a session w/ session_start() >2. register some vars w/ session_register() >3. click to next page, everything cool. all vars are there, and session id >is same >4. any other page, all session vars gone, but sessid is still the same. > >so session

[PHP] Re: session duration

2002-07-02 Thread Richard Lynch
>Is there a way to programatically (inside a session) change session duration >for the current session only? (using cookie-based sessions) ? Wild Guess: What if you use the PHP functions to alter the php.ini value for session time out in that script before you call session_start()?... Totally

[PHP] Re: Session problem

2002-05-24 Thread Adrian Ciutureanu
All you have to do is to call session_name("EmailSess"); session_start(); in rest of pages. BTW: You don't really need to call session_name() "Manisha" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am facing so many problems - first file lock and now fo

[PHP] Re: Session + IIS

2002-05-07 Thread Vincent Oostindie
Hi Maurice, On Tue, 07 May 2002 11:40:20 +0200, Maurice wrote: > I've come acros a number of problem reports about PHP and IIS, stateing > that session management doesn't work fine for certain PHP versions. Does > anyone know what the status of these problems are and which PHP version > has stabl

[PHP] Re: Session Registering

2002-04-25 Thread Javier
I think you have to populate the data in your pages not to wait the browser to do the job. Cause sometimes work and some time not. Craig Donnelly wrote: > Im using session in my form, there are 6 pages to the form, It all works > fine, until You work your way back through the form, to ammend the

[PHP] Re: Session Tutorial

2002-04-21 Thread R. Visser
[EMAIL PROTECTED] wrote: > Recently I have been trying to work with sessions however I must admit that > I am not sure I completely understand them. Does anyone know of a good > tutorial that thoroughly explains sessions? > Thanks in advance I can write one if you want, send me a mail. Greet

[PHP] Re: Session problem

2002-04-15 Thread Michael Virnstein
> 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 this means that there is output before session_start() was called. look at your include files, and make sure that there is no

[PHP] Re: session problem?

2002-04-09 Thread Mauricio Sthandier
I have the same problem... I thought it was for a different reason... If you got a solution please email me !!! "Bob" <[EMAIL PROTECTED]> escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 1.php?2.php > session_start();

[PHP] Re: session

2002-04-02 Thread Nate
Opps ... sorry I jumped too soon at answering that.. But from what I can tell the header function is screwing you up probly because it is like a redirect. If you register session data I would think it would have to be sent in the header to the client.. Maybe a workaround would be to echo vb or jav

[PHP] Re: session

2002-04-02 Thread Nate
Try establishing the variables first then register them as session variables. I guess you can't access the session variable directly so that may also mean you cannot set the session variable if you have nothing to actually put in it... : ) "R. Lindeman" <[EMAIL PROTECTED]> wrote in message [EMAI

[PHP] Re: Session Variables

2002-03-25 Thread bob
On Mon, 25 Mar 2002 18:18:33 -, [EMAIL PROTECTED] (Chad Gilmer) wrote: >Hi There, > >I am a beginner to PHP and I am tring to use session variables on my site. > >I am trying to use Session Variables in PHP on the iPLANIT.tv site > >When I use the following code: > > $ses_counter++; > > sessi

[PHP] Re: session garbage collection & save path

2002-03-04 Thread Kenneth Chau
STOOPID me >.< !! I forgot to chmod the save path. That's why it didn't work! bah! Let this be a lesson for all - chmod everything correctly :) Best regards! -Ken Kenneth Chau wrote: > So, it says in the manual that gc doesn't occur if the save path depth is > more than 2. This is true in the m

[PHP] Re: session password problems.

2002-02-17 Thread Michael Kimsal
Matthew Darcy wrote: > Hi, > > This script does NOT work. > > However if I change the sql function $sql_authorisation to > > $sql_authorisation = "SELECT * FROM account_details WHERE > account_name='$login_username' ); > > so that is only selects the username - it works. there for there is a

[PHP] Re: session data vs cookie data

2002-01-30 Thread Michael Kimsal
Erik Price wrote: > I have read elsewhere that depending on Cookie data for site > authentication is false economy, because Cookie data can be spoofed. > > I'm designing a login that auto-fills a person's name into a field for > authentication (based on their $user_id, which is stored in the c

[PHP] Re: session question (4.1.1)

2002-01-03 Thread David
how did u check? with a if? u should use the session_is_registered function instead, http://www.php.net/manual/en/function.session-is-registered.php if(!session_is_registered(\"user\")){ print \"invalid user\"; exit; } // your other code here and yes, turning off register globals is a good ide

[PHP] Re: session class

2001-12-27 Thread Chris Hall
session variables are accessible the same as when you set them : session_register('temp'); $temp = 1; on another page: session_start(); /* so that you can access your session variables... echo "$temp"; /* this will echo "1" and so you know you cannot define a variable for your class inside a f

[PHP] Re: session class

2001-12-21 Thread Yasuo Ohgaki
Christian Haines wrote: > (sorry if this has been posted a thousand times..i am having problems > posting) > > hi all, > > how does one access and manipulate session variables from within a class? > i have hunted the net high and low but received no relief. > > i have tried (where error

[PHP] Re: session destroy ??

2001-12-19 Thread Chris Lee
http://$SERVER_NAME";); ?> works for me. yes its stupid, but a session has to be started beore it can be destroyed. -- Chris Lee [EMAIL PROTECTED] "Olivier Masudi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In my online store i use session. > > I

[PHP] Re: session woes

2001-12-11 Thread Gaylen Fraley
No, it still doesn't work. I believe it's a documented issue with that release. it was fixed in 4.0.4dev. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message [EMA

[PHP] Re: session woes

2001-12-11 Thread Yasuo Ohgaki
Gaylen Fraley wrote: > I have a friend who is using an ISP that uses php4.0.3pl1 . It appears that > session_register is not working between pages. In script A, the session var > gets registered and shows registered using session_is_registered('testvar'); > However, when script B is called, a s

[PHP] Re: session

2001-12-11 Thread Emek TUZUN
I had the same problem... You can transfer it by the URL and again register the session variables there... Or you can use CURL functions for this... Please check the manual... Emek TUZUN "Jordan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > is there any

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

2001-12-05 Thread Chris Lee
session.auto_start is only usefull when not using classes as session variables. because a class must be defined before it can be created (or brought back to life from a session) it must be defined, this cant be done with session.auto_start. I dont use session.auto_start. I find the ability to use

[PHP] Re: session in https

2001-12-04 Thread php geko
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Php Geko wrote: > > > I am trying to set some sessions variables in an https (SSL): > > session_start(); > > ... > > $row = $results[0]; > > session_register("myses"); > > if(session_is_registered("

[PHP] Re: session in https

2001-12-04 Thread Richard Lynch
Php Geko wrote: > I am trying to set some sessions variables in an https (SSL): > session_start(); > ... > $row = $results[0]; > session_register("myses"); > if(session_is_registered("myses")){ > $myses=array("id"=>$row["user_id"],"username"=>$row["username"],"password"=> > $row["password"]); >

[PHP] Re: Session confusion

2001-12-03 Thread Jon Drukman
"Jon Drukman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > sometimes I am seeing behavior where a form on one page that references a > session variable doesn't carry over the change to the next page. i just figured this out from reading the user comments at

[PHP] Re: session variables in functions....

2001-11-20 Thread Julio Nobrega Trabalhando
Make it global or pass it as an argument: function CurrentLang(){ global $HTTP_SESSION_VARS; $language = $HTTP_SESSION_VARS["LangID"]; echo($language); } Or: function CurrentLang($HTTP_SESSION_VARS){ $language = $HTTP_SESSION_VARS["LangID"]; echo($language); } --

[PHP] Re: Session help

2001-11-14 Thread Johan Holst Nielsen
> Start at index.html. It goes to postcard.php. When I click on submit in > postcard.php, if I change any of the values in the form, the session > values received in send_mail.php do not change. Anyone have an idea what > I have done wrong now? > Try to make a session_unregister(), and make sess

[PHP] Re: session

2001-11-12 Thread Brendon
well i have a solution to my problem that makes no sense if i declare session_start(); on my login.html page which precedes these two pages it works and is now login.php this page creates the session and all is well if i create session_start(); on the next page and leave it off my login.php pa

[PHP] Re: session start error

2001-10-29 Thread Richard Hollis
try: session_register("tb"); $tb = new tabela("tb_area_interesse", "Área de Interesse"); then after using sesion_start() in the next script $tb should contain your object. Richard "Cdré «góvîj érg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I u

[PHP] Re: Session control issue

2001-10-22 Thread Grant Boggs
"Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am experiencing a problem of trying to run several variants of the same > code and keep the sessions separate. Here is the scenario. > > I am launching all of this from a CMS. So, the CMS displa

[PHP] Re: session ID does not delete itself

2001-10-19 Thread Chris Lee
in php.ini session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 604800 ; after this number of seconds,

[PHP] Re: Session ID

2001-10-04 Thread Rosen
Sorry, I can't access php.ini. It's on server, outside !!! Thanks, Rosen "Richard Lynch" <[EMAIL PROTECTED]> wrote in message 046301c14d62$865a8ea0$c801a8c0@Lynchux100">news:046301c14d62$865a8ea0$c801a8c0@Lynchux100... > Read php.ini > > Not sure you can set it on a site-by-site basis or within

[PHP] Re: Session ID

2001-10-04 Thread Richard Lynch
Read php.ini Not sure you can set it on a site-by-site basis or within Directory in httpd.conf or not though. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: ht

[PHP] Re: session var being lost between pages

2001-10-01 Thread Chris Lee
echo $PHPSESSID on every page, is it the same on every page ? I usually recommend that you create the register variables too. else { $userid = ''; $userpassword = ''; session_register('userid'); session_register('userpassword'); } if $PHPSESSID is set then session_start() will find it a

[PHP] Re: session screw up - any experience/hints for me?

2001-09-19 Thread Chris Lee
more likley then not what your seeing is the browser cache the results of page 1. If I am understanding this correctly. post link and link.src and I'll have a look. without code, there isnt anything more then guess. header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: '. g

[PHP] Re: Session variables

2001-09-08 Thread Richard Lynch
You'll have to define what you mean by "currently online". Do you mean actually waiting this moment for HTML to finish streaming to their browser? Or do you just mean, in my session files and not timed out yet? Probably the easiest way to do that would be to use http://php.net/session-set-save-

[PHP] Re: session

2001-09-06 Thread Owe André Jørgensen
First of all, we look a little bit on your code.. It should be something like this: code --- The big clue is to have a session variable that uniquely identifies the session. (think like you're dealing with a damn database =) ). And before I forget... DO NOT use start() and destroy() in

[PHP] Re: Session Problem

2001-08-24 Thread Richard Lynch
Register the variable whether it exists or not. \n"; ?> -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Messag

[PHP] Re: Session expiration detection and handling

2001-08-21 Thread Richard Lynch
On each page visit: Check their time-stamped (viz) session id to see if it's expired. if (expired) header("Location: expired.php"); UPDATE a record with their session id and a timestamp. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help

[PHP] Re: SESSION question.

2001-08-18 Thread Richard Lynch
You should be able to configure Apache to force the www. to appear, no matter what they type, or to keep using what they typed, if you didn't use any full URLs. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http:/

Re: [PHP] Re: session security issue

2001-08-14 Thread Christian Dechery
I guess it is... but read the replys to my email, the solution is quite simple and effective. At 16:49 14/8/2001 +0100, you wrote: >what about registering a var called loggedin with the session and then >testing on each script to see if it's set to 1 or something ? > >then base the access on tha

[PHP] Re: session security issue

2001-08-14 Thread Steve Brett
what about registering a var called loggedin with the session and then testing on each script to see if it's set to 1 or something ? then base the access on that ? that's what i use and then register uid with the session as well so you can use it througout your site ... ok you've got me worried

Re: [PHP] Re: Session problems

2001-08-01 Thread LITS
> -Original Message- > From: Bernie Kruger [mailto:[EMAIL PROTECTED]] > Sent: 19 July 2001 04:55 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Session problems > > > Tried everything all of you suggested, still no luck :-( > > BK > > "Bernie Kruger&quo

[PHP] Re: Session life time

2001-07-31 Thread Steve Brett
check this in php.ini session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up Steve "Sheni R. Meledath" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I am using sessions for user authenticatio

[PHP] Re: session gc question

2001-07-27 Thread Jonas Delfs
"Greg Donald" <[EMAIL PROTECTED]> skrev i en meddelelse [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is is possible to set session.gc_probability manually on a per script > basis, similar to the way error reporting is capable of being set? Yes. PHP have a standard function for setting things l

[PHP] Re: Session variable listing

2001-07-26 Thread Yasuo Ohgaki
Use $HTTP_SESSION_VARS. You are better to use $HTTP_*_VARS anyway. -- Yasuo Ohgaki "Cole Tuininga" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I took a look through the archives and couldn't find any reference > to this. > > Is there a way to easily lis

Re: [PHP] Re: Session problems

2001-07-19 Thread Jason Bell
age - From: "Rudolf Visagie" <[EMAIL PROTECTED]> To: "Steve Brett" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 9:38 AM Subject: RE: [PHP] Re: Session problems > I use only sessions and my scripts do not work if I do

RE: [PHP] Re: Session problems

2001-07-19 Thread Rudolf Visagie
I use only sessions and my scripts do not work if I do not register the session variables I want in each script. Otherwise they work fine. R -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 05:39 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Session

Re: [PHP] Re: Session problems

2001-07-19 Thread Steve Brett
t; > session_register("my_session_variable"); > > print "Value of 'my_session_variable': $my_session_variable"; > > ?> > > Rudolf Visagie > > -Original Message- > From: Bernie Kruger [mailto:[EMAIL PROTECTED]] > Sent: 19 Jul

RE: [PHP] Re: Session problems

2001-07-19 Thread Rudolf Visagie
Kruger [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 04:55 To: [EMAIL PROTECTED] Subject: [PHP] Re: Session problems Tried everything all of you suggested, still no luck :-( BK "Bernie Kruger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: Session problems

2001-07-19 Thread Steve Brett
another thing you could try is find out where the php session data is stored and see if the session files are there - i think on win2k they are in c:\php\sessiondata ... Steve "Bernie Kruger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I use this s

[PHP] Re: Session problems

2001-07-19 Thread Bernie Kruger
Tried everything all of you suggested, still no luck :-( BK "Bernie Kruger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I use this simple session script below, but the session variables are not > carried over from 1.php to 2.php. What can be wron

[PHP] Re: Session problems

2001-07-19 Thread Steve Brett
id' resgister the session var first then change / set it. don't actually know if it makes a diff Steve "Bernie Kruger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I use this simple session script below, but the session variables are not > car

[PHP] RE: session array :-/

2001-05-02 Thread Tim Ward
every time you run mainpage.php, the array is being reinitialised. Lose the line "$myArray=array();". Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -Original Message

<    1   2   3   4