At 9:59 AM -0700 7/18/08, R.C. wrote:
What's the sequence here. I was able to get the password going, protect the
main.php page, sent the email etc. but can't get that password to remain on
the main.php when they user tries to get back to that page.
Really appreciate some input and coding. I
I do not think this causes the problem.
It's just redundant.
Thx anyway
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: donderdag 21 oktober 2004 22:11
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions question
* Thus wrote Reinhart Viane:
PHP Code
// Register
Owkee here goes:
* Removing the foreach loop only supplied me with not being able to log
in.
But again I dunnot think this is the problem.
The variables are stored correctly.
At certain times the user_id sessions were just swapped...
* Now I've seen that
On Thu, 21 Oct 2004 11:39:23 +0200, Reinhart Viane [EMAIL PROTECTED] wrote:
Hey all, i'm new to this list so forgive me if i make any huge
mistakes.
I'm in a beginning stage of learning php and i hope you guys can help me
out with this question:
in a file named checkuser i do this when a
]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions question
On Thu, 21 Oct 2004 11:39:23 +0200, Reinhart Viane [EMAIL PROTECTED] wrote:
Hey all, i'm new to this list so forgive me if i make any huge
mistakes. I'm in a beginning stage of learning php and i hope you guys
can help me out
On Thu, 21 Oct 2004 14:43:45 +0200, Reinhart Viane [EMAIL PROTECTED] wrote:
Hey Mike,
After some intensive testing it seemed that $user_id did not solve the
isue
I hereby give the script to get the $user_id:
// check if the user info validates the db
($username and $password are the
to
be 'on' on the server (btw PHP Version 4.2.3)
Thx for the advice, I hope I can sort it out soon
Greetz
Reinhart
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]
Sent: donderdag 21 oktober 2004 15:47
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions question
On Thu, 21 Oct 2004
On Thu, 21 Oct 2004 16:06:37 +0200, Reinhart Viane [EMAIL PROTECTED] wrote:
I don't know if this can be caused by the fact register_globals seem to
be 'on' on the server (btw PHP Version 4.2.3)
You can override that setting if the web server is running apache and
AllowOverrides is set for your
-Original Message-
From: Mike Smith [mailto:[EMAIL PROTECTED]
Sent: donderdag 21 oktober 2004 13:28
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Sessions question
On Thu, 21 Oct 2004 11:39:23 +0200, Reinhart Viane [EMAIL PROTECTED] wrote:
Hey all, i'm new
hi,
Please don't send multiple posts, I just replied to your previous
message thinking that it had not been answered, a little further down I
come across this. It's very confusing to everyone.
thanks
--
Raditha Dissanayake.
On Thu, 21 Oct 2004 10:14:47 -0400, Mike Smith [EMAIL PROTECTED] wrote:
How about changing
How about learning to trim your posts? Thanks. :)
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To
* Thus wrote Reinhart Viane:
PHP Code
// Register some session variables!
session_register('userid');
$_SESSION['userid'] = $userid;
Do not use session_register with $_SESSION.
http://php.net/session-register
Curt
--
Quoth the Raven, Nevermore.
--
PHP General Mailing List
Thanks Jason, I'll keep the information handy for creating my own session
handler in case other options I'm exploring right now don't work.
On garbage collection, it happens sometimes within seconds and sometimes
within minutes. It tends to occur in batches with lulls of 20 to 30
minutes. So,
On garbage collection, it happens sometimes within seconds and sometimes
within minutes. It tends to occur in batches with lulls of 20 to 30
minutes. So, for example, I can login, navigate through 11 different pages
to generate the problem, navigate 2 pages to generate the problem, and then
not
* Thus wrote Jason Barnett:
On garbage collection, it happens sometimes within seconds and sometimes
within minutes. It tends to occur in batches with lulls of 20 to 30
minutes. So, for example, I can login, navigate through 11 different pages
to generate the problem, navigate 2 pages to
* Thus wrote My Self:
or using the default handler, and the /tmp dir is full.
where /tmp being the local value for your session.save_path ini
setting.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the
, July 08, 2004 11:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: PHP Sessions Question
On garbage collection, it happens sometimes within seconds and sometimes
within minutes. It tends to occur in batches with lulls of 20 to 30
minutes. So, for example, I can login, navigate through 11
Ed Lazor wrote:
What kind of problems could be happening server-side that would result in
PHP sessions randomly disappearing? And, is there a way to log or track
this information? Oh, and best of all, any recommendations on solutions?
To try logging this, you probably need to make your own
On Tue, Oct 14, 2003 at 05:23:54PM -0800, Chris Hubbard wrote:
to use php sessions:
you will need some place where you set up/create the sessions. typically
this is the login page. let's assume you'll use the login page. The logic
for the login page goes something like this:
1. present a
On 15 October 2003 01:31, Mike Brum contributed these pearls of wisdom:
One quick note - if you're starting a session then you can't
user the header() function afterwards. You'll get the lovel
headers
already sent
error.
Actually, so long as you do both *before* outputting any actual page
On 15 October 2003 05:25, Jake McHenry contributed these pearls of wisdom:
Yes, submit, inout, username and password all come from the
index.php form submission, but username changes throughout the
different pages, that was one of my problems. I'm not sure
what I did wrong before, but once I
Mike Brum mailto:[EMAIL PROTECTED]
on Tuesday, October 14, 2003 5:31 PM said:
One quick note - if you're starting a session then you can't user the
header() function afterwards. You'll get the lovel headers already
sent error.
Be sure to use an alternate method of redirection if you're
Jake McHenry mailto:[EMAIL PROTECTED]
on Tuesday, October 14, 2003 7:00 PM said:
Mainly what my problem is, is that when I turn Register_Globals = Off,
then my scripts stop working. I can't even get past the page I showed
you, the login page. No errors, it's just like I didn't enter any
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 12:01 PM
To: Jake McHenry; [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
Jake McHenry mailto:[EMAIL PROTECTED]
on Tuesday, October 14, 2003 7:00 PM said:
Mainly
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 12:01 PM
To: Jake McHenry; [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
Jake McHenry mailto:[EMAIL PROTECTED]
on Tuesday, October 14, 2003 7:00 PM said:
Mainly
Chris W. Parker wrote:
Jake McHenry mailto:[EMAIL PROTECTED]
on Wednesday, October 15, 2003 12:39 PM said:
Also, say on a separate page, how do I call the variabes stored in
$_SESSION? Like this? $name = $_SESSION[name];
Yes. But whenever you plan to access $_SESSION you must
always
Jake McHenry mailto:[EMAIL PROTECTED]
on Wednesday, October 15, 2003 12:55 PM said:
Once I get a complete list, I can just copy and paste that to all my
files, correct?
Yes you can just copy and paste the code.
What happens if I try to call a variable in $_SESSION
that hasn't been
Jake,
it would be helpful if we could see your code.
That said...
first you need to identify what information you need to track in the
sessions, and whether you're going to use php sessions (the $_SESSIONS
array) or build your own mysql based session tracker.
to use php sessions:
you will need
Jake McHenry mailto:[EMAIL PROTECTED]
on Tuesday, October 14, 2003 5:00 PM said:
[snip]
Can someone point me in the right direction here?
I'd love to help you but you did not provide enough information.
What exactly are you trying to do and what is it failing? Try showing us
the code in
-
From: Chris Hubbard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:24 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
Jake,
it would be helpful if we could see your code.
That said...
first you need to identify what information you need to track in the
sessions
McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
-Original Message-
From: Chris Hubbard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:24 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
Jake,
it would be helpful if we could see your code
header (Refresh: 0; url=login.php);
}
}
-Original Message-
From: Mike Brum [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 4:31 PM
To: 'Chris Hubbard'; [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
One quick note - if you're starting a session
-Original Message-
From: Chris Hubbard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 9:24 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
Jake,
it would be helpful if we could see your code.
That said...
first you need to identify what information you need
Jake,
given that I can't see what is in config.php time.php, I'll focus on your
index.php. I assume that the issues I point out will be applicable to
config and time also.
this:
?
should be:
?php
include(config.php);
include(time.php);
assuming that $SuBmIt and inout and username and password
,$YearToShow+5);
?
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
-Original Message-
From: Chris Hubbard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 11:37 PM
To: Jake McHenry; [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
Jake,
given
Coordinator
http://www.nittanytravel.com
-Original Message-
From: Chris Hubbard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 11:37 PM
To: Jake McHenry; [EMAIL PROTECTED]
Subject: RE: [PHP] Sessions Question
Jake,
given that I can't see what is in config.php time.php
-
From: - Edwin - [EMAIL PROTECTED]
To: Bob Irwin [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 27, 2003 2:39 PM
Subject: Re: [PHP] Sessions Question
Bob Irwin [EMAIL PROTECTED] wrote:
Aside from the fact that bad code can obviously make sessions hackable,
what
does everyone
-Original Message-
From: Bob Irwin [mailto:[EMAIL PROTECTED]
Sent: 27 June 2003 08:01
Oops.
Forgot to remove the Re: - it was a new thread - I just
replied to an old
message to get the php list email address
That's exactly what you shouldn't do. Most newsreaders, and some
Bob Irwin [EMAIL PROTECTED] wrote:
Aside from the fact that bad code can obviously make sessions hackable, what
does everyone think about the security of sessions?
I rely on them fairly heavily for low-mid range security on some of my
scripts, but if I was to do something that involved
Why? You wouldn't even know it happened - nor would the site. This is just a
security precaution.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 22, 2003 2:25 AM
Subject: Re: [PHP] Sessions question
On Saturday 22 March 2003 08:09
]
Sent: Friday, March 21, 2003 2:46 AM
Subject: Re: [PHP] Sessions question
on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
I have read some posts to this list on sessions and have read as much as
I
can find on them, but one problem still exists which I can't figure out.
How
do I
: [PHP] Sessions question
on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
I have read some posts to this list on sessions and have read as much as
I
can find on them, but one problem still exists which I can't figure out.
How
do I kill the session when the user leaves my site
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 15:59
on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
What about cookies - someone said if you put no time limit
on a cookie it
dies when you leave the site - I'm not sure about
To: Beauford.2002; PHP General
Subject: Re: [PHP] Sessions question
I think it's defined as when the browser is closed, not
when the browser is no longer in your domain -- but you'd
have to ask an expert or read the specs to be sure.
Justin
on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL
So is there anyway to do this - perl, javascript, voodo?
- Original Message -
From: Ford, Mike [LSS] [EMAIL PROTECTED]
To: 'Justin French' [EMAIL PROTECTED]; Beauford.2002
[EMAIL PROTECTED]; PHP General [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 11:04 AM
Subject: RE: [PHP] Sessions
: Re: [PHP] Sessions question
So is there anyway to do this - perl, javascript, voodo?
- Original Message -
From: Ford, Mike [LSS] [EMAIL PROTECTED]
To: 'Justin French' [EMAIL PROTECTED]; Beauford.2002
[EMAIL PROTECTED]; PHP General [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 11
. It
appears though from the answers I have received - that this is not
possible
B.
- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 4:21 PM
Subject: Re: [PHP] Sessions question
This is one of those rare things
On Saturday 22 March 2003 08:09, Beauford.2002 wrote:
I don't quite understand this. If a user is on my site and then decides to
go into his favourites and go to yahoo.com - this won't work. I think you
are assuming the user is going to click on something I have set up - I want
this to be
On Friday 21 March 2003 13:57, Beauford.2002 wrote:
I have read some posts to this list on sessions and have read as much as I
can find on them, but one problem still exists which I can't figure out.
How do I kill the session when the user leaves my site.
There is simply no way to tell when
, 2003 1:34 AM
Subject: Re: [PHP] Sessions question
On Friday 21 March 2003 13:57, Beauford.2002 wrote:
I have read some posts to this list on sessions and have read as much as
I
can find on them, but one problem still exists which I can't figure out.
How do I kill the session when the user
on 21/03/03 4:57 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
I have read some posts to this list on sessions and have read as much as I
can find on them, but one problem still exists which I can't figure out. How
do I kill the session when the user leaves my site. So if a user is on
on 21/03/03 6:20 PM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
What about HTTP_REFERER - is there someway I could incorporate it to so if
the user didn't come from xxx (a page on my site) then kill the session and
redirect him to the login page...
The referrer can maybe *help* (not sure how
Thanks to all for their help on this. As a follow-up, and after a bunch of
playing around with this yesterday, here's what I've come to learn. Perhaps
it will be helpful to others:
With enable-trans-id compiled into PHP and the following directives in
php.ini:
session.use_cookies = 0(PHP
I'm sure this is not a definitive answer, but I would assume that since you would be
passing the information through both the URI and Cookies, it will work regardless of
cookies enabled or disabled. On the other hand, if you are passing the session id
through the URI in the first place, you
If you compile it with --enable-trans-sid, then PHP will use cookies when
they are available and if they are not, it'll append the SID to links and
forms. Basically, it's automatic.
---John Holmes...
- Original Message -
From: Jeff Field [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then 1LT John W. Holmes declared
If you compile it with --enable-trans-sid, then PHP will use cookies when
they are available and if they are not, it'll append the SID to links and
forms. Basically, it's automatic.
Hmmm I've had a
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 be messy and insecure at times (eg: cross domain
issues). Placing
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
session_register($refresh);
session_register($seconds);
session_register($title);
You probably want to remove the $ signs in the above.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Is there a way to get the name of each variable in a session?
Just walk through $HTTP_SESSION_VARS
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
You probably need to "unset" the cookie PHP is using to store the session ID
when you destroy the session.
Change your cookie handling in your browser to the "warn me before every
cookie" and play around a bit maybe.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like
62 matches
Mail list logo