Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Adam Bregenzer
On Tue, 2004-02-03 at 11:05, Brian Dunning wrote: I have an application where I want users to only be allowed 5 searches per day unless they create an account. There may not be a simple answer to this, but in general, would it be preferred to do this with 24-hour session variables, or by

RE: [PHP] Sessions not working.

2004-01-29 Thread Gryffyn, Trevor
Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd check. If you have it set to =1 on the good server and aren't doing

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
] Subject: RE: [PHP] Sessions not working. Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd check. If you have it set

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
: [PHP] Sessions not working. Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd check. If you have it set to =1

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
setup? Thanks, jeff -Original Message- From: Jeff McKeon Sent: Thursday, January 29, 2004 11:49 AM To: Gryffyn, Trevor; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Further info. If I echo the session_id() onto the page I do get an id returned. So (correct me if I'm

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
, January 29, 2004 2:48 PM To: Jeff McKeon; Gryffyn, Trevor; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Ok, there seems to be some confusion about my setup so here it is again.. I have 1 physical server runing win2k server with IIS-5 I have 4 virtual web servers configured in IIS-5

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
server setup? Thanks, jeff -Original Message- From: Jeff McKeon Sent: Thursday, January 29, 2004 11:49 AM To: Gryffyn, Trevor; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions not working. Further info. If I echo the session_id() onto the page I do get an id returned. So (correct me

Re: [PHP] Sessions not working.

2004-01-29 Thread John Nichel
Jeff McKeon wrote: Figured it out, I think. PHP doesn't like the underscore in my website name. http://site_dev.foo.com/ doesn't work but http://192.168.2.50/ does. If I rename the site in DNS to siteDEV.foo.com then it works fine. Any ideas why? snip The underscore (_) is not a valid

RE: [PHP] Sessions not working.

2004-01-29 Thread Chris W. Parker
Jas mailto:[EMAIL PROTECTED] on Thursday, January 29, 2004 1:06 PM said: [snipped about 425 useless lines] Well in that case do a dump_vars($_session[],$_session[]) for each session variable you register and see if anything is listed. Jas C'mon dude. Some of use are on dialup (not me

Re: [PHP] Sessions not working.

2004-01-29 Thread John Nichel
Chris W. Parker wrote: C'mon dude. Some of use are on dialup (not me now, but when I get home) and that email REALLY needed to be trimmed. Chris. I remember back in the day We used to do stuff like this. To the people who were

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
John Nichel wrote: Chris W. Parker wrote: C'mon dude. Some of use are on dialup (not me now, but when I get home) and that email REALLY needed to be trimmed. Chris. I remember back in the day We used to do stuff like this. To

Re: [PHP] Sessions not working.

2004-01-29 Thread Daniel Clark
That's GREAT ! :-) I remember back in the day BIG SNIP Sorry, couldn't resist. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessions not registering inside a function.

2004-01-23 Thread John W. Holmes
From: Jarratt Ingram [EMAIL PROTECTED] I have created a login system, which works as expected on php 4.2. When i was asked to move it onto an older server using 4.0.6, the system stopped registering sessions. main page: ? session_start(); function login($username, $password){ global

Re: [PHP] sessions not registering inside a function.

2004-01-23 Thread Jarratt Ingram
Thank you John, I did manage to get it working by calling global $AuthUser after i ran the function on the main page and it seems to have resolved the issue. have a good weekend J On Fri, 2004-01-23 at 16:38, John W. Holmes wrote: From: Jarratt Ingram [EMAIL PROTECTED] I have created a

Re: [PHP] Sessions: strange behaviour in 4.3.3 ?

2004-01-16 Thread Chris Shiflett
--- Dino Tsoumakis [EMAIL PROTECTED] wrote: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at XX/class.session.php:61) in XX/class.session.php on line 38 You need to either put session_start() prior to any output (my preference) or

Re: [PHP] Sessions: strange behaviour in 4.3.3 ?

2004-01-16 Thread Dino Tsoumakis
Chris Shiflett [EMAIL PROTECTED] wrote news:[EMAIL PROTECTED] --- Dino Tsoumakis [EMAIL PROTECTED] wrote: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at XX/class.session.php:61) in XX/class.session.php on line 38 You need to

Re: [PHP] Sessions: strange behaviour in 4.3.3 ?

2004-01-16 Thread Chris Shiflett
--- Dino Tsoumakis [EMAIL PROTECTED] wrote: If you hve a close look at the code http://www.serv-int.de/class.session.txt you will find the session_start() in the constructor of the class prior to any output. This is apparently not the case, else this error message would not appear. The thing

RE: [PHP] sessions problem

2003-12-20 Thread Larry Brown
Make sure you have session_start(); at the beginning of each script you run from the time you start inserting variables to the time you want the session to end. -Original Message- From: Nitin [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 10:48 AM To: PHP-General Subject:

RE: [PHP] sessions simply don't work

2003-12-19 Thread jon
Maybe you should post the first few lines of your code... -- jon -Original Message- From: ken lee [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:18 PM To: [EMAIL PROTECTED] Subject: [PHP] sessions simply don't work I'm getting this message all the the time I try

Re: [PHP] sessions simply don't work

2003-12-19 Thread Brad Pauly
On Fri, 2003-12-19 at 13:18, ken lee wrote: I'm getting this message all the the time I try to start a session with session_start. Cannot send session cookie - headers already sent It's the first line of code in the file. I'm even getting the error with a single session_start() function

Re: [PHP] sessions simply don't work

2003-12-19 Thread Peter Walter
Ken, I had exactly the same problem and it really stumped me for a while. Check your php start and end tags carefully - even a single space before or after the ?php ? tags (before the session_start() ) will cause this problem. Check any included files before the session_start(). Peter Brad

Re: [PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread Lowell Allen
Hey guys and gals, I am working on a shopping cart and using some code to write it from 2 temp databases to a full end databases (which will then be used via PERL to send to an archaic order system) but right now I need to come up with a way to clear their current session ID after

Re: [PHP] Sessions, ending and starting new with just a click

2003-12-03 Thread John W. Holmes
Robert Sossomon wrote: Hey guys and gals, I am working on a shopping cart and using some code to write it from 2 temp databases to a full end databases (which will then be used via PERL to send to an archaic order system) but right now I need to come up with a way to clear their current session

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Thanks again but here's what happens when I run that. The form box appears. I select an option. I hit submit. The page that loads says: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\session_yyy.php on line 13 I then hit the link: Back to content page. The form box

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread John W. Holmes
Anthony Ritter wrote: Thanks again but here's what happens when I run that. The form box appears. I select an option. I hit submit. The page that loads says: Warning: Invalid argument supplied for foreach() in c:\apache\htdocs\session_yyy.php on line 13 I then hit the link: Back to content page.

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Sure. Here it is. There are three scripts. session_1.php: the original form script. session_1a.php: a revised script with a conditional else. session_2.php: the receiving script for the session array variable. Running script 1a and 2 works fine. However the original script 1 and 2 gives me a

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-19 Thread Anthony Ritter
Additinally, upon looking at the session files in: C:/apache/tmp: I get from session file from script session_1a.php: products|s:23:a:1:{i:0;s:6:Tardis;}; ... However, looking at session file from script session_1.php: I get: products|s:2:N;; -- Anthony Ritter [EMAIL

RE: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Giz
Try changing references to $_SESSION[products] to $_SESSION['products'] -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:49 AM To: [EMAIL PROTECTED] Subject: [PHP] =sessions / J. Meloni Textbook= Using mysql, apache and win98 The

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Burhan Khalid
Anthony Ritter wrote: Using mysql, apache and win98 The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. Page 338-339 (hour 16). After choosing my selections in the form box and hitting submit I get: ... Warning: Invalid argument supplied for foreach() in

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread CPT John W. Holmes
Anthony Ritter wrote: The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. [snip] if (isset($_POST[form_products])) { if (!empty($_SESSION[products])) { $products = array_unique( array_merge(unserialize($_SESSION[products]), $_POST[form_products]));

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Anthony Ritter
Thanks John and others. I'm using the script and no values show up in the page: session_bb.php after I submit the values in the select form. If somebody would like to test both scripts (session_aa.php and session_bb.php) and get back to me I would be grateful. As I said, these were from her

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread John W. Holmes
Anthony Ritter wrote: I'm using the script and no values show up in the page: session_bb.php after I submit the values in the select form. If somebody would like to test both scripts (session_aa.php and session_bb.php) and get back to me I would be grateful. I think you're using a crappy book...

Re: [PHP] Sessions and AOL?

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 01:54 pm, R. Van Tassel wrote: Hi everyone. I have a problem with a website that I don't understand. It seems that people using AOL can't see certain sections of this website. It is a directory section where a drop-down menu exists, you select the section you want

Re: [PHP] Sessions within new windows

2003-11-14 Thread Lucian Cozma
Olinux [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings?

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread Chris Shiflett
--- David T-G [EMAIL PROTECTED] wrote: If I run http://test.locations.org/sessions/extracting.php with cookies on, then upon reload $_SESSION[pw] has a value, which is expected. If cookies are off, though, it does not, and I do not see the SID in the URL even after the click. So I click

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread David T-G
Chris, et al - ...and then Chris Shiflett said... % % --- David T-G [EMAIL PROTECTED] wrote: % % I specified the SID, and it finally works -- but I thought that PHP was % supposed to format my URLs the right way for me, and even moreso didn't % think that I needed the ? because the SID

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread Chris Shiflett
--- David T-G [EMAIL PROTECTED] wrote: % Check your php.ini and see if you can find this: % % session.use_trans_sid = 1 Yep. OK, well PHP should add the session identifier to the URL for every link on the first page. This is because PHP can't tell until the next request whether the browser

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread David T-G
Chris, et al -- ...and then Chris Shiflett said... % % --- David T-G [EMAIL PROTECTED] wrote: % % % % session.use_trans_sid = 1 % % Yep. % % OK, well PHP should add the session identifier to the URL for every link OK. % on the first page. This is because PHP can't tell until the next

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread Chris Shiflett
--- David T-G [EMAIL PROTECTED] wrote: BTW, the same URL with .phps will let you see the PHP source. Well, hopefully only because you have a duplicate file (or a link) by that name. :-) Also, I meant view source as in the HTML output, not the PHP. % PHP is doing the session.use_trans_sid

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread David T-G
Chris, et al -- ...and then Chris Shiflett said... % % --- David T-G [EMAIL PROTECTED] wrote: % BTW, the same URL with .phps will let you see the PHP source. % % Well, hopefully only because you have a duplicate file (or a link) by that % name. :-) Yep. Created just for this exercise :-) %

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread Chris Shiflett
--- David T-G [EMAIL PROTECTED] wrote: OK, but I know I have a problem and what I need is a solution :-) Yes, I understand. :-) If you look at the output of phpinfo() on this exact same script, is the local value of session.use_trans_sid still 1? Yep. See a previous list reply. OK, well

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread David T-G
Chris, et al -- ...and then Chris Shiflett said... % % --- David T-G [EMAIL PROTECTED] wrote: % OK, but I know I have a problem and what I need is a solution :-) % % Yes, I understand. :-) *grin* % % If you look at the output of phpinfo() on this exact same script, % is the local value

Re: [PHP] sessions, SIDs, and php 4.3

2003-11-13 Thread David T-G
Chris, et al -- ...and then David T-G said... % % Let me go back over my code and see where I've screwed something up. That didn't take too long. I was using SCRIPT_URI instead of PHP_SELF. Ah. I guess PHP_SELF is my friend and none other. Good enough! So we have - use session_start()

RE: [PHP] Sessions within new windows

2003-11-06 Thread Donald Tyler
] Subject: RE: [PHP] Sessions within new windows If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings? I've experienced

RE: [PHP] Sessions within new windows

2003-11-06 Thread Pablo Gosse
: Thursday, November 06, 2003 12:48 AM To: Pablo Gosse; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how

RE: [PHP] Sessions within new windows

2003-11-06 Thread Chris Shiflett
--- Pablo Gosse [EMAIL PROTECTED] wrote: Hi Donald. I just tried this in XP Professional on IE 6.0 and it worked fine, both via a javascript function and a standard link with the target set to _blank. Anyone else have any idea why this would be happening? No, but it would really be nice if

RE: [PHP] Sessions within new windows

2003-11-06 Thread Donald Tyler
I am downloading ethereal and I will post my findings. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 2:31 PM To: Pablo Gosse; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows --- Pablo Gosse [EMAIL

RE: [PHP] Sessions within new windows

2003-11-06 Thread Donald Tyler
Gosse; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows --- Pablo Gosse [EMAIL PROTECTED] wrote: Hi Donald. I just tried this in XP Professional on IE 6.0 and it worked fine, both via a javascript function and a standard link with the target set to _blank. Anyone

RE: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE Safari on MacOSX work as expected. -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Sessions

Re: [PHP] Sessions within new windows

2003-11-05 Thread John W. Holmes
Donald Tyler wrote: What's happening is that when the new window pops up, the script isn't getting the session info properly. I changed it so that the page opens up in the main window instead of a new one and it works fine. I presume this is because the browser is not sending the session ID to

Re: [PHP] Sessions within new windows

2003-11-05 Thread Marek Kilimajer
Are you using _blank as target. Then try a named window. But this is just a wild guess. Donald Tyler wrote: Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE Safari on MacOSX work as expected. -Original Message- From: Donald Tyler

RE: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
Yeah I was. I did try that though and it made no difference =0( -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:40 AM To: Donald Tyler Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions within new windows Are you using _blank

Re: [PHP] Sessions within new windows

2003-11-05 Thread Chris Shiflett
--- Donald Tyler [EMAIL PROTECTED] wrote: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
or are you using Javascript to launch the new window? Cheers, Pablo -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:42 AM To: Donald Tyler; [EMAIL PROTECTED] Subject: Re: [PHP] Sessions within new windows --- Donald Tyler [EMAIL

RE: [PHP] Sessions within new windows

2003-11-05 Thread Donald Tyler
]; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows That's strange, as I've been writing a CMS over the past year which requires the user to have IE 5.5 or newer, and I have no problems with pop-ups accessing session values under IE 6.0. Perhaps it's an issue of how

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
this could be controlled via IE's settings? Cheers, Pablo -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:48 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows I am using a normal link. Here is the exact html code

RE: [PHP] Sessions within new windows

2003-11-05 Thread Chris Shiflett
--- Pablo Gosse [EMAIL PROTECTED] wrote: If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. I have no first-hand experience with this, since I don't use Windows (and I use Safari when I use Macs). But, there

RE: [PHP] Sessions within new windows

2003-11-05 Thread Pablo Gosse
On Wednesday, November 05, 2003 12:38 PM, Chris wrote: I would also be interested in this, as well as some sort of confirmation of this behavior. It could be that the person who described this behavior was wrong. :-) I think Chris is correct in thinking that the person who started the

RE: [PHP] Sessions within new windows

2003-11-05 Thread Chris W. Parker
Pablo Gosse mailto:[EMAIL PROTECTED] on Wednesday, November 05, 2003 3:08 PM said: From my experience over the past few years, here's how IE works with sessions and new windows. [snip Pablo's experience] Your description is the way I understand it. Chris. -- Don't like reformatting

RE: [PHP] Sessions within new windows

2003-11-05 Thread olinux
If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings? I've experienced a similar problem on a php based system I use. I don't

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread Chris Boget
Which is the line that relates to the line: \$_SESSION['salutation'];\, I've tried removing the ';' but it change nothing...? Can anyone see my error? Either take out the quotes surrounding the word 'salutation' or take the variable out of the string: \ .

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread James E Hicks III
Try this. mysql_query(INSERT INTO $table ( salutation, name, city } VALUES { \.$_SESSION['salutation'].\, \.$_SESSION['name'].\, \.$_SESSION['city'].\ } James

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread Jake McHenry
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 8:36 AM Subject: [PHP] Sessions.. (I'm learning), can't call a variable? Not sure if this is a MySQL Q. or a PHP one, but here goes... I'm just learning sessions... And I'm trying to

Re: [PHP] Sessions Question

2003-10-15 Thread James Kaufman
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

RE: [PHP] Sessions Question

2003-10-15 Thread Ford, Mike [LSS]
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

RE: [PHP] Sessions Question

2003-10-15 Thread Ford, Mike [LSS]
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

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
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

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
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

RE: [PHP] Sessions Question

2003-10-15 Thread Jake McHenry
-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

RE: [PHP] Sessions Question

2003-10-15 Thread Jake McHenry
-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

RE: [PHP] Sessions Question

2003-10-15 Thread Jake McHenry
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

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
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

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
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

RE: [PHP] Sessions Question

2003-10-14 Thread Chris W. Parker
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

RE: [PHP] Sessions Question

2003-10-14 Thread Mike Brum
- 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

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
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

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
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

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
-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

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
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

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
,$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

RE: [PHP] Sessions Question

2003-10-14 Thread Jake McHenry
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

RE: [PHP] Sessions

2003-10-13 Thread Ford, Mike [LSS]
On 11 October 2003 02:23, Lowell Allen wrote: I'm trying to track down some issues with my site, and am trying to decide if it's a session variable issue. On a random basis, it appears that session vars are being dumped, deleted, or unset, as the site will break. Queries based on session

Re: [PHP] Sessions

2003-10-11 Thread Nelson Goforth
The Session documentation IS difficult to understand. I wrestled with it for some time (and still am). There's just no clear cookie_lifetime variable! All of Lowell Allen's instructions are the same that I've discovered, save that I set the 'session.gc_maxlifetime' to a large number - I was

Re: [PHP] Sessions

2003-10-11 Thread Curt Zirzow
* Thus wrote Nelson Goforth ([EMAIL PROTECTED]): The Session documentation IS difficult to understand. I wrestled with it for some time (and still am). agreed! I am currently trying to come up with a re-write of the session documentation, to resolve issues like this. The problem is there

RE: [PHP] Sessions

2003-10-11 Thread James Johnson
-Original Message- From: Lowell Allen [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 6:23 PM To: PHP Subject: Re: [PHP] Sessions I'm trying to track down some issues with my site, and am trying to decide if it's a session variable issue. On a random basis, it appears

RE: [PHP] Sessions - more testing

2003-10-11 Thread James Johnson
- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Saturday, October 11, 2003 3:46 PM To: 'Lowell Allen'; 'PHP' Subject: RE: [PHP] Sessions Hi, I checked the session settings with phpinfo(); I get the following values: session_save_path = /tmp session.use_cookies = On session.use_trans_sid

Re: [PHP] Sessions

2003-10-11 Thread Lowell Allen
I checked the session settings with phpinfo(); I get the following values: session_save_path = /tmp session.use_cookies = On session.use_trans_sid = 1 I've created a folder on the same level as all the pages called ccb_sessions and have CHMOD it to 777. I have added the following snippet

Re: [PHP] Sessions

2003-10-10 Thread Lowell Allen
I'm trying to track down some issues with my site, and am trying to decide if it's a session variable issue. On a random basis, it appears that session vars are being dumped, deleted, or unset, as the site will break. Queries based on session vars don't work, session vars not being displayed,

Re: [PHP] Sessions

2003-10-07 Thread John W. Holmes
Webmaster wrote: Hi! I started to use the php own session functions today. Now I am getting such lines in the address bar: /pages/news.php?option=1015PHPSESSID=PHPSESSID=d117dba208d4b205cd4e521f606b b44e#result Why do I get PHPSESSID=PHPSESSID= ? Probably because you have

Re: [PHP] Sessions

2003-10-07 Thread Chris Wanstrath
You probably have transparent sessions turned on in your config. Turn that off and the session ID will disappear from the url. On Tue, 2003-10-07 at 08:09, Webmaster wrote: Hi! I started to use the php own session functions today. Now I am getting such lines in the address bar:

Re: [PHP] sessions and php

2003-09-18 Thread Chris Shiflett
--- Patrik Fomin [EMAIL PROTECTED] wrote: start_session[test] register_session[test2] Please read this: http://www.php.net/session Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List

Re: [PHP] sessions and php

2003-09-18 Thread Justin French
Assuming PHP = 4.1 page1.php ? // continue or create a session session_start(); // set some session vars $_SESSION['color'] = 'red'; $_SESSION['name'] = 'Justin'; ? page2.php ? // continue or create a session session_start(); // echo some session vars echo Hello {$_SESSION['name']}, your

RE: [PHP] Sessions doubt

2003-09-15 Thread Jay Blanchard
[snip] do I really need to have it in both or just one? or does it really matter at all? if just one it should be the file that is calling top.php right? [/snip] Just one, the calling page/script -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Sessions doubt

2003-09-15 Thread Javier Tacon
In PHP = 4.3.3 versions, start a session when you have a session started already, causes a notice error and the second call is ignored. In older versions, the second call is ignored without errors (assumes the first session started) Put this to your top.php: @session_start(); And then,

Re: [PHP] Sessions in frames

2003-08-19 Thread Justin French
It's the same as any other web page. When you define a frameset, you do so with URLs, so the session value can be passed to each window of the frameset via the URL. Obviously cookies or PHP enabled with enable-trans-sid will make this job easy/transparent. The real issue you have is that a

Re: [PHP] Sessions

2003-08-17 Thread Peda
Thank you all for your help. I solved the problem using session_save_path(/some/dir/) in php script. But now I have another question. Every time when I'm using .htaccess file and try to connect to my site I get this message: Internal Server Error The server encountered an internal error or

Re: [PHP] Sessions

2003-08-17 Thread Peda
Thank you all for your help. I solved the problem using session_save_path(/some/dir/) in php script. But now I have another question. Every time when I'm using .htaccess file and try to connect to my site I get this message: Internal Server Error The server encountered an internal error or

Re: [PHP] Sessions

2003-08-17 Thread John W. Holmes
Peda wrote: Thank you all for your help. I solved the problem using session_save_path(/some/dir/) in php script. Just one thing to note: If you set the session save_path in your file using this method or ini_set, then there will not be any automatic garbage collection. You'll have to do that

RE: [PHP] Sessions

2003-08-17 Thread Wouter van Vliet
on this one? Maybe php was compiled without support for this directive .. or smth? Wouter -Oorspronkelijk bericht- Van: Peda [mailto:[EMAIL PROTECTED] Verzonden: zondag 17 augustus 2003 8:57 Aan: [EMAIL PROTECTED] Onderwerp: Re: [PHP] Sessions Thank you all for your help. I solved the problem

<    1   2   3   4   5   6   7   8   9   10   >