Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Stut
On 19 Sep 2008, at 18:47, Philip Thompson wrote: I've narrowed it down to 10 initial queries... 1. Grab system config data (that's used in lots of places) Does it change often? No? Then cache it in a PHP script. Use var_export to create a file that you can include which will create the con

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Robert Cummings
On Fri, 2008-09-19 at 12:47 -0500, Philip Thompson wrote: > > > > Why do you have so many queries? Perhaps we can attack this issue > > from another angle. > > I've narrowed it down to 10 initial queries... > > 1. Grab system config data (that's used in lots of places) Why not use some form of

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Philip Thompson
On Sep 19, 2008, at 11:10 AM, Eric Butera wrote: On Fri, Sep 19, 2008 at 12:05 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: On Sep 19, 2008, at 10:54 AM, Wolf wrote: Philip Thompson <[EMAIL PROTECTED]> wrote: Hi all. Let me start out by saying, I have STFW and read through the list

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Sancar Saran
Use memcached based session handler Regards Sancar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Eric Butera
On Fri, Sep 19, 2008 at 12:05 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Sep 19, 2008, at 10:54 AM, Wolf wrote: > >> Philip Thompson <[EMAIL PROTECTED]> wrote: >>> >>> Hi all. >>> >>> Let me start out by saying, I have STFW and read through the list >>> archives. Now that that's out o

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Dan Joseph
On Fri, Sep 19, 2008 at 12:05 PM, Philip Thompson <[EMAIL PROTECTED]>wrote: > On Sep 19, 2008, at 10:54 AM, Wolf wrote: > > Philip Thompson <[EMAIL PROTECTED]> wrote: >> >>> Hi all. >>> >>> Let me start out by saying, I have STFW and read through the list >>> archives. Now that that's out of

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Stut
On 19 Sep 2008, at 17:05, Philip Thompson wrote: On Sep 19, 2008, at 10:54 AM, Wolf wrote: Philip Thompson <[EMAIL PROTECTED]> wrote: Hi all. Let me start out by saying, I have STFW and read through the list archives. Now that that's out of the way. To speed up our application, we want

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Philip Thompson
On Sep 19, 2008, at 10:54 AM, Wolf wrote: Philip Thompson <[EMAIL PROTECTED]> wrote: Hi all. Let me start out by saying, I have STFW and read through the list archives. Now that that's out of the way. To speed up our application, we want to implement using SESSIONs in some locations. Bef

Re: [PHP] SESSIONS vs. MySQL

2008-09-19 Thread Wolf
Philip Thompson <[EMAIL PROTECTED]> wrote: > Hi all. > > Let me start out by saying, I have STFW and read through the list > archives. Now that that's out of the way. > > To speed up our application, we want to implement using SESSIONs in > some locations. Beforehand, on every page, we

Re: [PHP] Sessions - Failed to initialize storage...

2008-08-15 Thread Bojan Tesanovic
Hm , this issue has been reported http://bugs.php.net/bug.php?id=25876 and http://bugs.php.net/bug.php? id=32330 and it occurs sporadically for some users though most of them said that setting ini_set("session.save_handler", "files"); solved the problem and / tmp dir must be writable by serve

Re: [PHP] Sessions - Failed to initialize storage...

2008-08-15 Thread Chris Ditty
Fatal error: session_start(): Failed to initialize storage module. in /home/webroot/www/service/payarrange/index.php on line 4 Line 4 is the session_start(); >>> Bojan Tesanovic <[EMAIL PROTECTED]> 8/15/2008 1:10 PM >>> Can you give us the exact error that you got, that can help to debug ... O

Re: [PHP] Sessions - Failed to initialize storage...

2008-08-15 Thread Bojan Tesanovic
Can you give us the exact error that you got, that can help to debug ... On Aug 15, 2008, at 7:53 PM, Chris Ditty wrote: Can someone tell me what I am missing here? This is working fine on my development machine(5.2.6), but on the production box(4.3.2), it doesn't want to work. I am getti

Re: [PHP] SESSIONS QUESTION

2008-07-18 Thread tedd
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 a

Re: [PHP] Sessions across multiple pages

2008-06-21 Thread Bastien Koert
On Fri, Jun 20, 2008 at 5:48 PM, R.C. <[EMAIL PROTECTED]> wrote: > "tedd" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > If you had used my minimal method, I could have provided you with a > > simple example. But considering you want bloat, try reading the > > manual about sessi

Re: [PHP] Sessions across multiple pages

2008-06-20 Thread R.C.
"tedd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you had used my minimal method, I could have provided you with a > simple example. But considering you want bloat, try reading the > manual about sessions. :-) > Cheers, > tedd This was very helpful Tedd sorry I used some

Re: [PHP] Sessions across multiple pages

2008-06-20 Thread tedd
At 12:29 PM -0700 6/20/08, R.C. wrote: Without having a database for this, I believe one could use sessions to keep the information in memory and transferrable to all the video subpages while user is on the site? I tried playing with this but couldn't get this to go. If you had used my minimal

RE: [PHP] Sessions

2008-02-29 Thread Warren Vail
Van; php-general@lists.php.net > Subject: Re: [PHP] Sessions > > On Thu, Feb 28, 2008 at 8:29 PM, Warren Vail <[EMAIL PROTECTED]> wrote: > > Actually garbage cleanup can be controlled by writing your session > handler > > functions. You can almost guarantee that noone el

Re: [PHP] Sessions

2008-02-29 Thread Daniel Brown
On Thu, Feb 28, 2008 at 8:29 PM, Warren Vail <[EMAIL PROTECTED]> wrote: > Actually garbage cleanup can be controlled by writing your session handler > functions. You can almost guarantee that noone else will step on your > session (with the possible session of the user who hopes to benefit from

RE: [PHP] Sessions

2008-02-28 Thread Warren Vail
Actually garbage cleanup can be controlled by writing your session handler functions. You can almost guarantee that noone else will step on your session (with the possible session of the user who hopes to benefit from this, by using a unique session id name, its in the manual under something like

Re: [PHP] Sessions

2008-02-28 Thread Ray Hauge
VamVan wrote: Hello People, I wanted to have your assistance in deciding few things here, basically I want to auto populate a registration form for people visiting second time or so on. I have already started a session,I know that session is a cookie so is it better to rely upon the session coo

Re: [PHP] sessions/cookies

2008-01-23 Thread Jochem Maas
others have given good advice, but let's learn to walk before we run shall we. 1. session_start() should be called once per request. 2. checkValidUser() does a select on all the users in the database, this is *wrong* - do a select with a suitable WHERE clause the retrieves the one user that ma

Re: [PHP] sessions/cookies

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 9:54 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > I realize this link I'm posting is called "auth" > too, but that wasn't my choice. that was kind of funny after your initial criticizm above, but to solars credit, its the auth 'package' so really the name isnt too bad, id say.

Re: [PHP] sessions/cookies

2008-01-22 Thread Eric Butera
On Jan 22, 2008 9:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > I wrote an authentication class in php4. The sessions dont seem to be > working with internet explorer, just with FF. here is the code below, > a cookies notice pops up when you try and login: Hi, I took a quick look at your c

Re: [PHP] sessions (version 5.1 to 5.2 )

2007-10-29 Thread tedd
strange. i must be missing something simple. Fritz I would guess that you did make the first line of your code: http://www.php.net/session_start Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] sessions (version 5.1 to 5.2 )

2007-10-28 Thread Robert Cummings
On Mon, 2007-10-29 at 11:15 +0800, Fritz Kuhlman wrote: > Dear PHP gurus, > > I moved to PHP from asp around version 4.something. When i tried using > sessions on my site, they just wouldn't work. No error messages, just > wouldn't work. There was a session ID generated, but if i tried > > $

Re: [PHP] Sessions - Ini settings and timeout

2007-10-18 Thread Holografix
Hi. Thank you very much Casey. I followed this suggestion as Zoltán also suggested and it's working nice. Best regards, holo "Casey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You could set $_SESSION['lasttime'] to time() and check it on every page. > > > > On Oct 17, 2007,

Re: [PHP] Sessions - Ini settings and timeout

2007-10-18 Thread Holografix
Many thanks again Zoltán. It's working nice now. Best regards holo ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 10. 17, szerda keltezéssel 15.10-kor Holografix ezt írta: >> Many thanks Zoltn. >> >> It's clear now >> One more thing: session.cookie_lifetim

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Zoltán Németh
2007. 10. 17, szerda keltezéssel 15.10-kor Holografix ezt írta: > Many thanks Zoltn. > > It's clear now > One more thing: session.cookie_lifetime defaults to 0 (until browser is > closed). > if setting session.cookie_lifetime to 60 can I look for > $_SESSION[session_name()] in every request ? w

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Casey
You could set $_SESSION['lasttime'] to time() and check it on every page. On Oct 17, 2007, at 3:58 AM, "Holografix" <[EMAIL PROTECTED]> wrote: I have some questions about sessions timeout and sessions ini settings. In php.ini I have session.gc_maxlifetime = 30 (for testing purpose only

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Holografix
Many thanks Zoltán. It's clear now One more thing: session.cookie_lifetime defaults to 0 (until browser is closed). if setting session.cookie_lifetime to 60 can I look for $_SESSION[session_name()] in every request ? best regards holo ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message ne

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Zoltán Németh
2007. 10. 17, szerda keltezéssel 11.58-kor Holografix ezt írta: > I have some questions about sessions timeout and sessions ini settings. > > In php.ini I have session.gc_maxlifetime = 30 (for testing purpose only) , > session.gc_probability = 1 and session.gc_divisor = 100 (didn't touch this > v

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-11 Thread Matthew Powell
Dan wrote: > I need to retrieve a huge amount of data form a database and do so many > times. To eliminate the overhead of connecting to the database and > pulling down all that info over and over, I'm trying to pull it down > only once and stick it into a session. The problem is I get the first

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-05 Thread Dan
It's already in an array format. I don't remember off the top of my head but there's some function like resultsarray which turns the resutls into an array. I'm already storing the array in the session. ""John A DAVIS"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] stick in in

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-04 Thread Per Jessen
Dan wrote: > After thinking about this a while I also thought of making my own > cache. The problem with that is would it be any faster or have any > less strain on the server than having multiple requests/connections to > the database? A lot depends on the amount of data and the overall load on

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread John A DAVIS
stick in in an array in a session   >>> "Dan" <[EMAIL PROTECTED]> 10/3/2007 2:21 PM >>> I need to retrieve a huge amount of data form a database and do so many times.  To eliminate the overhead of connecting to the database and pulling down all that info over and over, I'm trying to pull it

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Dan
The data doesn't change often but the querys do. Thats why I was origionally thinking of just storing the entire result in a session and just use the part of the session I needed. So caching wouldn't really work. That was something intresting though that I didn't know earlier thanks! - Dan

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Gary Josack
Does the data change often? If not you could just enable query cache and cache connection threads and you'd probably be fine. Dan wrote: After thinking about this a while I also thought of making my own cache. The problem with that is would it be any faster or have any less strain on the serve

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Dan
After thinking about this a while I also thought of making my own cache. The problem with that is would it be any faster or have any less strain on the server than having multiple requests/connections to the database? - Dan "Per Jessen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECT

Re: [PHP] Sessions running out of storage space - Increase memory?

2007-10-03 Thread Per Jessen
Dan wrote: > I need to retrieve a huge amount of data form a database and do so > many times. To eliminate the overhead of connecting to the database > and pulling down all that info over and over, I'm trying to pull it > down only once and stick it into a session. The problem is I get the > fir

Re: [PHP] Sessions vs MySQL

2007-09-28 Thread Stut
Alberto García Gómez wrote: I'm seeking for some class to work with sessions against a mysql DB, please examples are welcome. http://php.stut.net/104-mysql_sessions.html -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Sessions?

2007-07-26 Thread brian
Luc wrote: Good morning list, I have my form up and running but something is missing: if you omit required fields, the form returns an error like: please fill in ... please fill in... the error message is displayed above the form on the same page. The problem is that upon showing the

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-20 Thread Richard Lynch
On Tue, July 17, 2007 9:43 pm, Instruct ICC wrote: >>Ignore this "problem" for awhile and see if it doesn't go away. >>(read: you realize it's not really a problem) > > Are you really a CEO? I like your style. Well, there really is a C-corp "Lynch Interplanetary Enterprises, Inc" But let's just

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> It's still browser-dependent, really, but now your browser isn't doing what YOU want for your form-filling-in-experience... I like this. I'll have to add it to my "operator error", "pass the buck" bag of tricks. There's still nothing you can do abo

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: Chris Shiflett <[EMAIL PROTECTED]> This is a characteristic of the caching headers that session_start() sends. Although not directly related to your question, I think the following article articulates this in sufficient detail: http://shiflett.org/articles/how-to-avoid-page-has-expired-warn

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 12:33 pm, Instruct ICC wrote: > I have an old PHP page without sessions. When the user submits the > form, > and then clicks the browser back button, the prior form data is > retained. This is actually almost for sure browser dependent behaviour... Some browsers will reset

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Chris Shiflett
Instruct ICC wrote: > I have an old PHP page without sessions. When the user submits the > form, and then clicks the browser back button, the prior form data > is retained. > > If I now have that PHP page require another page that uses > session_start, when the user submits the form, and then clic

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread nor0101
Instruct ICC wrote: > > I have an old PHP page without sessions. When the user submits the form, > and then clicks the browser back button, the prior form data is retained. > What method is your form using, get or post? If post, usually the browser would give some sort of warning to the use

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: Chris <[EMAIL PROTECTED]> That has to be your code re-setting the session variables or something. PHP won't do this automatically for you. Well I suppose it's "or something". Try this code. Name it test.php: Test Field1: Field2: A) With session_start commented out as

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-16 Thread Chris
Instruct ICC wrote: I have an old PHP page without sessions. When the user submits the form, and then clicks the browser back button, the prior form data is retained. If I now have that PHP page require another page that uses session_start, when the user submits the form, and then clicks the

Re: [PHP] Sessions VS MySQL

2007-05-30 Thread Matt Fielding
As far as scalability goes, there's actually a game we're referencing a lot to help us make it work at the get go called Kingdom of Loathing ( http://www.kingdomofloathing.com ). This game seems to have on average around 1,000-1,500 users on at any given time. I've noticed when visiting the page a

Re: [PHP] Sessions VS MySQL

2007-05-30 Thread Richard Lynch
On Wed, May 30, 2007 4:00 am, Matt Fielding wrote: > I've recently begun work on a web-based RPG game with some friends, > and have > recently been thinking about the best solution for loading and saving > persistent variables like player life/stats and other information. I > am both > familiar wit

Re: [PHP] Sessions timing out, php5

2007-03-21 Thread Travis Doherty
Paul Nowosielski wrote: >Dear all, > >I'm having an issue where sessions timeout after inactivity. > >I have session.cache_expire set to 1440. > >But some users have reported sessions timing out after a couple hours. > > > Are you storing sessions in /tmp? Possible that your OS has a cron job r

Re: [PHP] sessions vs domain problem

2006-12-22 Thread Stut
Reinhart Viane wrote: I have the folowing problem : Hosting of my site is at http://www.groep6049.ksjnet.be My domainname is www.ksachiropoelkapelle.be I have forwarded www.ksachiropoelkapelle.be

RE: [PHP] sessions vs domain problem

2006-12-22 Thread Robert Cummings
On Fri, 2006-12-22 at 13:12 +0100, Vincent DUPONT wrote: > Hello, > > As far as I know, the session will use a cookie, and the cookies are linked > to one domain name. > I don't know a way of using a cookie accross multiple domains, but I guess > this should be possible. > The question is : will

RE: [PHP] sessions vs domain problem

2006-12-22 Thread Vincent DUPONT
Hello, As far as I know, the session will use a cookie, and the cookies are linked to one domain name. I don't know a way of using a cookie accross multiple domains, but I guess this should be possible. The question is : will PHP allow you to do that? I guess no because this could be a security

Re: [PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread Ed Lazor
Check php.ini session settings. There are some options in there for you to use in your scripts. Set up scripts to test whether session cookies are being saved and then route accordingly. On Oct 28, 2006, at 12:41 PM, sit1way wrote: Hey all. I run a members-only hockey report that relies

[PHP] Re: PHP Sessions || Problems with AOL, Safari, etc.

2006-10-28 Thread sit1way
Hey all. I run a members-only hockey report that relies on Session variable(s) to grant/deny access to members-only site content. Generally members have no trouble accessing members-only content once logged-in to the site; however, since we have a few thousand members, I frequently receive tec

Re: [PHP] Sessions /cookies issue

2006-10-18 Thread Chris
Dave Goodchild wrote: Hi all. I am building a web app which uses sessions to retain user data between pages and finally enter that data into mysql - I have noticed that out of 100 entries in the database, 10% are blank. I tested this by setting a cookie on the home page and when the user navigate

Re: [PHP] sessions no longer work

2006-08-10 Thread Richard Lynch
Wild Guess Theory [These are assuming that the normal attempts to debug have failed] One of the problems with header("Location: ") in conjuction with session_start() is this: The browser is sent 2 things as a result of these calls: 1. An HTTP response code involving a 302 and a new URL 2. A Cook

Re: [PHP] sessions no longer work

2006-08-09 Thread blackwater dev
It doesn't matter if I just surf to the page and they do seem to get the same phpsessionid..interestingly enough the first three cars are 'BAD'. Not sure if the path is writable through. On 8/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote: blackwater dev wrote: > Sorry if you are getting this mul

Re: [PHP] sessions no longer work

2006-08-09 Thread blackwater dev
Sorry if you are getting this multiple times, email is acting a bit screwy. Nope. still doesn't work. Sessions just aren't saved. On 8/9/06, Jochem Maas <[EMAIL PROTECTED]> wrote: blackwater dev wrote: > Hello, > > I have a site that was coded a while ago. I was just told that the admin > s

Re: [PHP] sessions no longer work

2006-08-09 Thread Jochem Maas
blackwater dev wrote: > Hello, > > I have a site that was coded a while ago. I was just told that the admin > side no longer works. I looked and the host recently put php 4.4.2 on the > site. I have tried a few things but nothing seems to work. The problem is > once you log in the admin page a

Re: [PHP] Sessions

2006-06-06 Thread Richard Lynch
On Tue, June 6, 2006 1:43 pm, Oliver Block wrote: > is there any easy way to use differnt sessions on the same domain? I > didn't > really dig for a solution, but if anybody has one ready? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Sessions

2006-06-06 Thread Oliver Block
Am Dienstag, 6. Juni 2006 20:51 schrieb Jay Blanchard: > Yes. http://www.php.net/session session_set_cookie_params() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sessions

2006-06-06 Thread Jay Blanchard
[snip] is there any easy way to use differnt sessions on the same domain? I didn't really dig for a solution, but if anybody has one ready? [/snip] Yes. http://www.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Richard Lynch
On Mon, May 15, 2006 8:53 am, Jonas Rosling wrote: > Warning: session_start(): Cannot send session cookie - headers already > sent > by (output started at /var/www/html/index.php:9) in > /var/www/html/index.php > on line 82 > > But I found out that if I put the tag in the absolute top of every > pa

Re: [PHP] Sessions - session_start()

2006-05-15 Thread tg-php
session_start() doesn't need to be the first line of your PHP code, it just needs to be called before any other output is performed. Including any blank spaces or anything else. If you have: --- 1: 2: --- It's not going to work because you have a blank line being output to the browser for i

Re: [PHP] Sessions - session_start()

2006-05-15 Thread tedd
At 4:33 PM +0200 5/15/06, Jonas Rosling wrote: Den 06-05-15 16.00, skrev "Thomas Munz" <[EMAIL PROTECTED]>: put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring al

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Eric Butera
On 5/15/06, Jonas Rosling <[EMAIL PROTECTED]> wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the si

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Jonas Rosling
Den 06-05-15 16.00, skrev "Thomas Munz" <[EMAIL PROTECTED]>: > put ob_start(); on the first line of your page > > on Monday 15 May 2006 15:53, Jonas Rosling wrote: >> Hi, >> I've been building a site with PHP 5 on my develop machine. I've been >> woring alot with session handling. For example I'v

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Jonas Rosling
Den 06-05-15 15.56, skrev "nicolas figaro" <[EMAIL PROTECTED]>: > Jonas Rosling a écrit : >> Hi, >> I've been building a site with PHP 5 on my develop machine. I've been woring >> alot with session handling. For example I've been using session_start() now >> and then depending on where the user/vi

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Thomas Munz
put ob_start(); on the first line of your page on Monday 15 May 2006 15:53, Jonas Rosling wrote: > Hi, > I've been building a site with PHP 5 on my develop machine. I've been > woring alot with session handling. For example I've been using > session_start() now and then depending on where the use

Re: [PHP] Sessions - session_start()

2006-05-15 Thread nicolas figaro
Jonas Rosling a écrit : Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the site to a host server with PHP

Re: [PHP]Sessions

2006-04-18 Thread Richard Lynch
On Tue, April 18, 2006 1:09 pm, Gissel y Fridel wrote: > I'm a beginner using PHP and I don't speak english very well but I > like your > > site because I believe that you are the best. > > Mi problem is with sessions, how can I do to delete a files of a > server when > > the user closes the page.

Re: [PHP] Sessions Issues With 2 Instances On Same Server

2006-04-17 Thread Richard Lynch
On Thu, April 13, 2006 9:10 pm, Mark Sargent wrote: > I'm looking at OSCommerce, and have been asked if running 2 instances > on > the same server would be doable. I only foresee perhaps issues with > sessions. Has anyone got any thoughts on this? I'd be very > appreciative > of any help with this.

Re: [PHP] Sessions Issues With 2 Instances On Same Server

2006-04-13 Thread chris smith
On 4/14/06, Mark Sargent <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm looking at OSCommerce, and have been asked if running 2 instances on > the same server would be doable. I only foresee perhaps issues with > sessions. Has anyone got any thoughts on this? I'd be very appreciative > of any help wi

Re: [PHP] Sessions and Frames

2006-04-13 Thread Richard Lynch
On Wed, April 5, 2006 1:02 pm, Shaun wrote: > I have a site that uses frames. The frameset loads another site (both > on the > same server) in the lower frame window. Every time the page changes in > the > lower frame the session id changes, how can I stop this happening? A) Don't use frames. The

Re: [PHP] Sessions and Frames

2006-04-05 Thread Shaun
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, April 5, 2006 1:33 pm, Joe Wollard wrote: >> If you can't avoid them, keep it simple - just store the ID in one >> place, >> like a session cookie. Doing so will make sure that if the session ID >> gets >> cha

Re: [PHP] Sessions and Frames

2006-04-05 Thread Richard Lynch
On Wed, April 5, 2006 1:33 pm, Joe Wollard wrote: > If you can't avoid them, keep it simple - just store the ID in one > place, > like a session cookie. Doing so will make sure that if the session ID > gets > changed in one frame it will still be correct in all of the other > frames. No, it won't.

Re: [PHP] Sessions and Frames

2006-04-05 Thread Joe Wollard
I agree with Richard on this one. Frames should really be avoided if for no other reason than they cause headaches like the one you have right now. ;-) If you can't avoid them, keep it simple - just store the ID in one place, like a session cookie. Doing so will make sure that if the session ID ge

Re: [PHP] Sessions and Frames

2006-04-05 Thread Richard Lynch
On Wed, April 5, 2006 1:02 pm, Shaun wrote: > I have a site that uses frames. The frameset loads another site (both > on the > same server) in the lower frame window. Every time the page changes in > the > lower frame the session id changes, how can I stop this happening? You might be able to redu

Re: [PHP] Sessions in PHP... where to start???

2006-02-27 Thread Curt Zirzow
Well for the latter part of your question.. 'Where to start??' the first thing to start with is to NOT reply to a topic and change your subject to ask something else, instead click the icon in your email application that indicates a new message and compose your question addressed to php-general@li

Re: [PHP] Sessions in PHP... where to start???

2006-02-27 Thread Philip Hallstrom
Hi everybody! I have a problem and I was told to check out the sessions part in PHP. What I want to deal with is the following : I have a PHP page with a form, where the user writes some data. These data are then written into a file which is then used in a system command as input for an externa

RE: [PHP] Sessions

2006-01-19 Thread php-mail
ver config but I'm getting there :) -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 20 January 2006 00:33 To: php-mail Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Sessions On Thu, January 19, 2006 5:52 pm, php-mail wrote: > Just tried

RE: [PHP] Sessions

2006-01-19 Thread Richard Lynch
On Thu, January 19, 2006 5:52 pm, php-mail wrote: > Just tried an ini_set to make sure then rebooted the server (which is > Apache > on a VS running Redhat) Does claim that you are using file-based sessions, or 'user'?... After you do the ini_set, of course. Toss in a phpinfo(); right after the

RE: [PHP] Sessions

2006-01-19 Thread php-mail
ailto:[EMAIL PROTECTED] Sent: 19 January 2006 23:30 To: PHP Mail Cc: php-general@lists.php.net Subject: Re: [PHP] Sessions You changed php.ini back to 'user' instead of 'file' for the session handling? You re-started the web-server? (Apache, IIS, whatever) If it's

Re: [PHP] Sessions

2006-01-19 Thread Richard Lynch
You changed php.ini back to 'user' instead of 'file' for the session handling? You re-started the web-server? (Apache, IIS, whatever) If it's a Windows box, reboot for good measure. On Thu, January 19, 2006 3:29 pm, PHP Mail wrote: > Hi > > > > My site is running a custom session handler (into

Re: [PHP] Sessions...

2005-12-26 Thread Curt Zirzow
On Thu, Dec 22, 2005 at 11:56:12PM -0500, Chris Shiflett wrote: > Greg Donald wrote: > >I've been using this database driven PHP sessions setup for years: > > > >http://dbsessions.destiney.com/ > > I offer a similar implementation: > > http://phpsecurity.org/code/ch08-2 Ok, i'll bite.. :) One t

Re: [PHP] Sessions...

2005-12-22 Thread Chris Shiflett
Greg Donald wrote: I've been using this database driven PHP sessions setup for years: http://dbsessions.destiney.com/ I offer a similar implementation: http://phpsecurity.org/code/ch08-2 A few notes about yours (if you don't mind the critique): 1. It doesn't use a separate database connecti

Re: [PHP] Sessions...

2005-12-22 Thread Greg Donald
On 12/22/05, Dan Parry <[EMAIL PROTECTED]> wrote: > I've decided to rock the boat and start using a custom handler (we need to > check who's online etc; the standard stuff) utilising our MySQL (v3.28) DB I've been using this database driven PHP sessions setup for years: http://dbsessions.destiney

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-05 Thread Peter Brodersen
On Sun, 4 Dec 2005 11:56:43 -0800, in php.general [EMAIL PROTECTED] (Curt Zirzow) wrote: >iirc, Firefox 1.5 has improved its caching system, in paticular to the >back button drama. It seems so, but the issue is still present in 1.5 and might be further on. session_cache_limiter('private') change

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-04 Thread Curt Zirzow
On Fri, Dec 02, 2005 at 07:21:43PM -0500, Chris Shiflett wrote: > Hi Peter, > > >When I begin session with session_start() PHP sets an Expired-header. > >I suppose that's fine for the sake of unwanted caching. > > > >Unfortunately, Firefox seem to reload a page that's expired when using > >the bro

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-02 Thread Peter Brodersen
Hi Chris, On Fri, 02 Dec 2005 19:21:43 -0500 Chris Shiflett <[EMAIL PROTECTED]> wrote: > You might find this article helpful: > > http://shiflett.org/articles/guru-speak-nov2004 Very helpful indeed! I was mainly focused on the "Expires" header, but changing the Cache-Control output (by setting

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-02 Thread Chris Shiflett
Hi Peter, When I begin session with session_start() PHP sets an Expired-header. I suppose that's fine for the sake of unwanted caching. Unfortunately, Firefox seem to reload a page that's expired when using the browser's "Back" navigation instead of showing the page as it was as the user left i

Re: [PHP] Sessions and register_long_arrays

2005-11-05 Thread Marcus Bointon
On 5 Nov 2005, at 00:25, Unknown Unknown wrote: how do you reference the sessions? do you refrence them *with* the old arrays? because that would obviously be a problem No, obviously that would be dumb! There is no mention of the old style HTTP_*_VARS arrays anywhere in my code. Smarty does

Re: [PHP] Sessions and register_long_arrays

2005-11-04 Thread Unknown Unknown
how do you reference the sessions? do you refrence them *with* the old arrays? because that would obviously be a problem

RE: [PHP] Sessions and register_long_arrays

2005-11-02 Thread Ford, Mike
-Original Message- From: Marcus Bointon [mailto:[EMAIL PROTECTED] Sent: 29 October 2005 14:48 Strange behaviour that's taken me ages to track down. I have the situation where I can create a session, but any changes to it are not saved. session_write_close() didn't help. Eventually I t

Re: [PHP] Sessions and register_long_arrays

2005-10-29 Thread Marcus Bointon
On 29 Oct 2005, at 14:48, Marcus Bointon wrote: changing an item in $_SESSION simply does not get saved back to the session file if register_long_arrays is enabled. I meant disabled. I've also tried using it with the mm session save handler and I get the same symptoms. I also get identical

Re: [PHP] sessions

2005-10-07 Thread Richard Lynch
On Wed, October 5, 2005 10:17 am, blackwater dev wrote: > I have an old site which uses this code on login: > > //it does a query then > if ($affected_rows>0){ >session_start(mysite); > session_register('admin'); > $wardadmin = yes; > header("location: admin

Re: [PHP] sessions

2005-10-05 Thread Jochem Maas
blackwater dev wrote: I have an old site which uses this code on login: //it does a query then if ($affected_rows>0){ session_start(mysite); is 'mysite' a constant? if not then that line should be: session_start('mysite'); session_register('admin'); $wardadmin

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