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
>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?
"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
>'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
>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
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
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
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
[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
> 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
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();
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
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
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
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
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
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
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
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
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
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
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
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
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
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
"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 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"]);
>
"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
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);
}
--
> 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
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
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
"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
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,
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
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
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
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
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-
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
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
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
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:/
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
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
> -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
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
"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
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
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
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
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
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]...
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
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
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
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
301 - 357 of 357 matches
Mail list logo