Re: [PHP] PHP session variables

2012-08-16 Thread Tedd Sperling
On Aug 15, 2012, at 4:13 PM, Robert Cummings wrote: > > I only pointed it out because I used to do exactly the same thing :) > > Cheers, > Rob. Thanks, I was starting to feel pretty dumb. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List

Re: [PHP] PHP session variables

2012-08-16 Thread Tedd Sperling
On Aug 15, 2012, at 4:42 PM, Andrew Ballard wrote: > On Wed, Aug 15, 2012 at 3:24 PM, Tedd Sperling wrote: >> The php manual ( http://us3.php.net/manual/en/function.session-start.php ) >> >> First Note states that session_start() must be called *before* anything sent >> to the Browser. >> >> S

Re: [PHP] PHP session variables

2012-08-15 Thread Andrew Ballard
On Wed, Aug 15, 2012 at 3:24 PM, Tedd Sperling wrote: > Your points are well taken -- thanks. I've seen a lot of people code that way, so it's easy to miss. In your original code, that first statement was calling session_start() 1,000 times. This is because the first time through, SID is undefine

Re: [PHP] PHP session variables

2012-08-15 Thread Robert Cummings
On 12-08-15 03:19 PM, Tedd Sperling wrote: Rob: Again thanks. Sorry, I totally missed your point. In my "defense" I commonly use the value returned from microtime() as a string and not as a float. The code that followed my "microtime( false );" demo broke the string and recombined it into a

Re: [PHP] PHP session variables

2012-08-15 Thread Tedd Sperling
Andrew: Your points are well taken -- thanks. However, my only concern is given this: > for($i=1; $i < 1000; $i++) >{ >if (!defined('SID')) > { > echo __LINE__, '::session_start()'; > session_start(); > } >} The php manual ( http:

Re: [PHP] PHP session variables

2012-08-15 Thread Tedd Sperling
On Aug 14, 2012, at 11:01 AM, Robert Cummings wrote: > > I'm not sure if you're making a joke, but your changes have no effect. You've > merely explicitly stated the optional parameter's default value. What I had > meant was to change the following: > > > $starttime = microtime(); > $startar

Re: [PHP] PHP session variables

2012-08-15 Thread Andrew Ballard
On Fri, Aug 10, 2012 at 11:56 AM, Tedd Sperling wrote: > On Aug 10, 2012, at 11:45 AM, Tedd Sperling wrote: > >> On Aug 9, 2012, at 5:16 PM, Jim Lucas wrote: >>> You are relying on PHP's loose typing. This is a poor check. >>> >>> session_id() returns a string, not boolean. >>> >>> You should d

Re: [PHP] PHP session variables

2012-08-14 Thread tamouse mailing lists
On Aug 14, 2012 1:36 AM, "tamouse mailing lists" wrote: > > > On Aug 13, 2012 8:01 AM, "Robert Cummings" wrote: > > > > On 12-08-10 04:42 PM, Tedd Sperling wrote: > >> > >> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: > >> > >>> Hi. My question will maybe out of topic, I'm sorry. > >>> How

Re: [PHP] PHP session variables

2012-08-14 Thread Robert Cummings
On 12-08-14 10:41 AM, Tedd Sperling wrote: On Aug 13, 2012, at 10:59 AM, Robert Cummings wrote: On 12-08-10 04:42 PM, Tedd Sperling wrote: On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: Hi. My question will maybe out of topic, I'm sorry. How can you know that one way will be much slower

Re: [PHP] PHP session variables

2012-08-14 Thread Tedd Sperling
On Aug 13, 2012, at 10:59 AM, Robert Cummings wrote: > On 12-08-10 04:42 PM, Tedd Sperling wrote: >> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: >> >>> Hi. My question will maybe out of topic, I'm sorry. >>> How can you know that one way will be much slower than other one? I mean, >>> ho

Re: [PHP] PHP session variables

2012-08-14 Thread tamouse mailing lists
On Aug 13, 2012 8:01 AM, "Robert Cummings" wrote: > > On 12-08-10 04:42 PM, Tedd Sperling wrote: >> >> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: >> >>> Hi. My question will maybe out of topic, I'm sorry. >>> How can you know that one way will be much slower than other one? I mean, how can

Re: [PHP] PHP session variables

2012-08-13 Thread Robert Cummings
On 12-08-10 04:42 PM, Tedd Sperling wrote: On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: Hi. My question will maybe out of topic, I'm sorry. How can you know that one way will be much slower than other one? I mean, how can I learn which function is faster before I test it? Ege: No your

Re: [PHP] PHP session variables

2012-08-12 Thread Tedd Sperling
On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: > Hi. My question will maybe out of topic, I'm sorry. > How can you know that one way will be much slower than other one? I mean, how > can I learn which function is faster before I test it? Ege: No your question is on topic. This question sho

Re: [PHP] PHP session variables

2012-08-12 Thread Marco Behnke
Am 09.08.12 23:16, schrieb Jim Lucas: > On 08/09/2012 01:45 PM, Tedd Sperling wrote: >> On Aug 8, 2012, at 5:41 PM, Jim Giner >> wrote: >> >>> On 8/8/2012 11:24 AM, Ansry User 01 wrote: I am setting the _SESSION variables in one of my file, but whenever I leave the php page session varia

Re: [PHP] PHP session variables

2012-08-10 Thread Tedd Sperling
On Aug 10, 2012, at 11:45 AM, Tedd Sperling wrote: > On Aug 9, 2012, at 5:16 PM, Jim Lucas wrote: >> You are relying on PHP's loose typing. This is a poor check. >> >> session_id() returns a string, not boolean. >> >> You should do this instead. >> >> if ( session_id() === '' ) >> >> >

Re: [PHP] PHP session variables

2012-08-10 Thread Tedd Sperling
On Aug 9, 2012, at 5:16 PM, Jim Lucas wrote: > You are relying on PHP's loose typing. This is a poor check. > > session_id() returns a string, not boolean. > > You should do this instead. > > if ( session_id() === '' ) > > > > -- > Jim Lucas Thanks Jim -- you're right. What about? i

Re: [PHP] PHP session variables

2012-08-09 Thread Jim Lucas
On 08/09/2012 01:45 PM, Tedd Sperling wrote: On Aug 8, 2012, at 5:41 PM, Jim Giner wrote: On 8/8/2012 11:24 AM, Ansry User 01 wrote: I am setting the _SESSION variables in one of my file, but whenever I leave the php page session variables are not accessible. Not sure what I need to do addi

Re: [PHP] PHP session variables

2012-08-09 Thread Tedd Sperling
On Aug 8, 2012, at 5:41 PM, Jim Giner wrote: > On 8/8/2012 11:24 AM, Ansry User 01 wrote: >> I am setting the _SESSION variables in one of my file, but whenever I leave >> the php page session variables are not accessible. Not sure what I need to >> do additionally other then defining _SESSION[

RE: [PHP] PHP session variables

2012-08-08 Thread Jen Rasmussen
-Original Message- From: David Harkness [mailto:davi...@highgearmedia.com] Sent: Wednesday, August 08, 2012 11:53 AM To: Ansry User 01 Cc: php-general@lists.php.net Subject: Re: [PHP] PHP session variables On Wed, Aug 8, 2012 at 8:24 AM, Ansry User 01 wrote: > I am setting the _SESS

Re: [PHP] PHP session variables

2012-08-08 Thread David Harkness
On Wed, Aug 8, 2012 at 8:24 AM, Ansry User 01 wrote: > I am setting the _SESSION variables in one of my file, but whenever I > leave the php page session variables are not accessible. As always, post some code demonstrating what you're doing. Help us help you! :) David

Re: [PHP] PHP session variables

2012-08-08 Thread Daniel Brown
On Wed, Aug 8, 2012 at 11:24 AM, Ansry User 01 wrote: > I am setting the _SESSION variables in one of my file, but whenever I leave > the php page session variables are not accessible. Not sure what I need to do > additionally other then defining _SESSION[]. > Any pointer. If you're not tel

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 20:18, tedd wrote: At 8:03 PM + 3/18/11, Stuart Dallas wrote: > > On Friday, 18 March 2011 at 19:56, tedd wrote: > > At 7:26 PM + 3/18/11, Stuart Dallas wrote: > > > > On Friday, 18 March 2011 at 19:14, tedd wrote: > > > > At 3:53 PM + 3/18/11, Stuart Dallas

Re: [PHP] PHP session replication

2011-03-18 Thread tedd
At 8:03 PM + 3/18/11, Stuart Dallas wrote: On Friday, 18 March 2011 at 19:56, tedd wrote: At 7:26 PM + 3/18/11, Stuart Dallas wrote: > On Friday, 18 March 2011 at 19:14, tedd wrote: > At 3:53 PM + 3/18/11, Stuart Dallas wrote: > > > The cookies I use to replace sessions are sessio

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 19:56, tedd wrote: At 7:26 PM + 3/18/11, Stuart Dallas wrote: > > On Friday, 18 March 2011 at 19:14, tedd wrote: > > At 3:53 PM + 3/18/11, Stuart Dallas wrote: > > > > The cookies I use to replace sessions are session-based cookies and > > > > last no longer than

Re: [PHP] PHP session replication

2011-03-18 Thread tedd
At 7:32 PM + 3/18/11, Stuart Dallas wrote: On Friday, 18 March 2011 at 18:06, Nathan Nobbe wrote: CI seemed to have a problem in that it would not spill data over into additional cookies when the size of one cookie was maxed out. One way to tell it's time to rethink your paradigm is when y

Re: [PHP] PHP session replication

2011-03-18 Thread tedd
At 7:26 PM + 3/18/11, Stuart Dallas wrote: On Friday, 18 March 2011 at 19:14, tedd wrote: At 3:53 PM + 3/18/11, Stuart Dallas wrote: > The cookies I use to replace sessions are session-based cookies and > last no longer than a traditional PHP session. The key is to provide > a lightwe

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 18:06, Nathan Nobbe wrote: > CI seemed to have a problem in that it would not spill data over into > additional cookies when the size of one cookie was maxed out. One way to tell > it's time to rethink your paradigm is when you're using up the maximum number > of cook

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 19:14, tedd wrote: At 3:53 PM + 3/18/11, Stuart Dallas wrote: > > The cookies I use to replace sessions are session-based cookies and > > last no longer than a traditional PHP session. The key is to provide > > a lightweight method of ensuring that whichever server

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 19:25, Torsten Rosenberger wrote: If i am right then you have 1.44KB per request ? > I've never done the analysis, but it's an AJAX-heavy site so that could well be the average. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > "Stuart Dallas" schrieb: > > >

Re: [PHP] PHP session replication

2011-03-18 Thread Torsten Rosenberger
If i am right then you have 1.44KB per request ? BR/Torsten "Stuart Dallas" schrieb: >On Friday, 18 March 2011 at 17:36, Nathan Nobbe wrote: >On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: >> > On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: >> > > > I'm curious to know

Re: [PHP] PHP session replication

2011-03-18 Thread tedd
At 3:53 PM + 3/18/11, Stuart Dallas wrote: The cookies I use to replace sessions are session-based cookies and last no longer than a traditional PHP session. The key is to provide a lightweight method of ensuring that whichever server processes the request has access to the session data.

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:58 AM, Richard Quadling wrote: > On 18 March 2011 17:36, Nathan Nobbe wrote: > > On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > > > >> On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > >> > >> > I'm curious to know what people are storing in the

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:56 AM, Stuart Dallas wrote: > On Friday, 18 March 2011 at 17:36, Nathan Nobbe wrote: > On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > > > On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > > > > > I'm curious to know what people are storing in th

Re: [PHP] PHP session replication

2011-03-18 Thread Richard Quadling
On 18 March 2011 17:36, Nathan Nobbe wrote: > On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > >> On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: >> >> > I'm curious to know what people are storing in their sessions. Is there >> anything larger than a few hundred bytes that

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 17:36, Nathan Nobbe wrote: On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > > On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > > > > I'm curious to know what people are storing in their sessions. Is there > > > > anything larger than a few hundre

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas wrote: > On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > > > I'm curious to know what people are storing in their sessions. Is there > anything larger than a few hundred bytes that is specific and unique to that > session storage? Wh

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: > "Stuart Dallas" schrieb: > > > On Friday, 18 March 2011 at 16:19, Torsten Rosenberger wrote: > > Hello > > > > > > First you need to decide which type of cluster you choose. If you use LVS > > > you can tell the director do bind on

Re: [PHP] PHP session replication

2011-03-18 Thread Torsten Rosenberger
"Stuart Dallas" schrieb: >On Friday, 18 March 2011 at 16:19, Torsten Rosenberger wrote: >Hello >> >> First you need to decide which type of cluster you choose. If you use LVS >> you can tell the director do bind one client to one server so you do not >> need to replicat session. > >As I sai

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
On Friday, 18 March 2011 at 16:19, Torsten Rosenberger wrote: Hello > > First you need to decide which type of cluster you choose. If you use LVS you > can tell the director do bind one client to one server so you do not need to > replicat session. As I said in my response to Tedd, binding clie

Re: [PHP] PHP session replication

2011-03-18 Thread Torsten Rosenberger
Hello First you need to decide which type of cluster you choose. If you use LVS you can tell the director do bind one client to one server so you do not need to replicat session. If you choose DNS for load balancing you should replicat the session by database or DRBD or memcache server. Also t

Re: [PHP] PHP session replication

2011-03-18 Thread tedd
At 3:53 PM + 3/18/11, Stuart Dallas wrote: Hi Tedd, Long time no chat, hope you're well. On Friday, 18 March 2011 at 15:44, tedd wrote: At 3:18 PM + 3/17/11, Stuart Dallas wrote: > > > Pragmatically speaking though, I'd say go for database backed > sessions until > > they actually

Re: [PHP] PHP session replication

2011-03-18 Thread Stuart Dallas
Hi Tedd, Long time no chat, hope you're well. On Friday, 18 March 2011 at 15:44, tedd wrote: > At 3:18 PM + 3/17/11, Stuart Dallas wrote: > > > > > Pragmatically speaking though, I'd say go for database backed > > sessions until > > > they actually become a performance bottleneck. > > -sni

Re: [PHP] PHP session replication

2011-03-18 Thread tedd
At 3:18 PM + 3/17/11, Stuart Dallas wrote: > Pragmatically speaking though, I'd say go for database backed sessions until > they actually become a performance bottleneck. -snip- This may also be of interest: http://stut.net/2008/07/26/sessionless-sessions-2/ -Stuart -- Stuart Dall

Re: [PHP] PHP session replication

2011-03-17 Thread Alessandro Ferrucci
Stuart, actually I stumbled upon and read your article right after posing the question to the list, it was definitely a solution I was willing to go with, I still may do that. Thank you. Alessandro On Thu, Mar 17, 2011 at 11:18 AM, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 15:15, Nath

Re: [PHP] PHP session replication

2011-03-17 Thread Richard Quadling
On 17 March 2011 16:45, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 16:16, Richard Quadling wrote: > On 17 March 2011 16:04, Stuart Dallas wrote: >> > On Thursday, 17 March 2011 at 16:02, Richard Quadling wrote: >> > On 17 March 2011 15:30, Stuart Dallas wrote: >> > > > On Thursday, 17

Re: [PHP] PHP session replication

2011-03-17 Thread Stuart Dallas
On Thursday, 17 March 2011 at 16:16, Richard Quadling wrote: On 17 March 2011 16:04, Stuart Dallas wrote: > > On Thursday, 17 March 2011 at 16:02, Richard Quadling wrote: > > On 17 March 2011 15:30, Stuart Dallas wrote: > > > > On Thursday, 17 March 2011 at 15:29, Stuart Dallas wrote: > > > > On

Re: [PHP] PHP session replication

2011-03-17 Thread Richard Quadling
On 17 March 2011 16:04, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 16:02, Richard Quadling wrote: > On 17 March 2011 15:30, Stuart Dallas wrote: >> > On Thursday, 17 March 2011 at 15:29, Stuart Dallas wrote: >> > On Thursday, 17 March 2011 at 15:22, Richard Quadling wrote: >> > > On 17

Re: [PHP] PHP session replication

2011-03-17 Thread Nathan Nobbe
On Thu, Mar 17, 2011 at 9:03 AM, Joel wrote: > Take a look at MCache: http://www.mohawksoft.org/?q=node/8 > > A drop in distributed replacement for php sessions. > One important distinction to draw is that distributed != replicated. Replication is something extra, as the discussion I linked to

Re: [PHP] PHP session replication

2011-03-17 Thread Stuart Dallas
On Thursday, 17 March 2011 at 16:02, Richard Quadling wrote: On 17 March 2011 15:30, Stuart Dallas wrote: > > On Thursday, 17 March 2011 at 15:29, Stuart Dallas wrote: > > On Thursday, 17 March 2011 at 15:22, Richard Quadling wrote: > > > On 17 March 2011 15:18, Stuart Dallas wrote: > > > > > On

Re: [PHP] PHP session replication

2011-03-17 Thread Richard Quadling
On 17 March 2011 15:30, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 15:29, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 15:22, Richard Quadling wrote: >> On 17 March 2011 15:18, Stuart Dallas wrote: >> > > On Thursday, 17 March 2011 at 15:15, Nathan Nobbe wrote: >> > > On Wed, Ma

Re: [PHP] PHP session replication

2011-03-17 Thread Stuart Dallas
On Thursday, 17 March 2011 at 15:29, Stuart Dallas wrote: On Thursday, 17 March 2011 at 15:22, Richard Quadling wrote: > On 17 March 2011 15:18, Stuart Dallas wrote: > > > On Thursday, 17 March 2011 at 15:15, Nathan Nobbe wrote: > > > On Wed, Mar 16, 2011 at 10:06 PM, Alessandro Ferrucci < > > > >

Re: [PHP] PHP session replication

2011-03-17 Thread Nick Williams
Interesting. When I went to it I got no such 404 error. Came right up. Thought-provoking article, too. N On Mar 17, 2011, at 10:22 AM, Richard Quadling wrote: > On 17 March 2011 15:18, Stuart Dallas wrote: >> On Thursday, 17 March 2011 at 15:15, Nathan Nobbe wrote: >> On Wed, Mar 16, 2011 at 1

Re: [PHP] PHP session replication

2011-03-17 Thread Richard Quadling
On 17 March 2011 15:18, Stuart Dallas wrote: > On Thursday, 17 March 2011 at 15:15, Nathan Nobbe wrote: > On Wed, Mar 16, 2011 at 10:06 PM, Alessandro Ferrucci < >> alessandroferru...@gmail.com> wrote: >> >> > Hello, >> > I'm curious, what are the most popular methods to perform session >> > repli

Re: [PHP] PHP session replication

2011-03-17 Thread Stuart Dallas
On Thursday, 17 March 2011 at 15:15, Nathan Nobbe wrote: On Wed, Mar 16, 2011 at 10:06 PM, Alessandro Ferrucci < > alessandroferru...@gmail.com> wrote: > > > Hello, > > I'm curious, what are the most popular methods to perform session > > replication across http servers in PHP? > > I've read about

Re: [PHP] PHP session replication

2011-03-17 Thread Joel
Take a look at MCache: http://www.mohawksoft.org/?q=node/8 A drop in distributed replacement for php sessions. Or you could use memcache to do the same thing. On Thu, Mar 17, 2011 at 12:06 AM, Alessandro Ferrucci wrote: > Hello, > I'm curious, what are the most popular methods to perform sessi

Re: [PHP] PHP session replication

2011-03-17 Thread Nathan Nobbe
On Wed, Mar 16, 2011 at 10:06 PM, Alessandro Ferrucci < alessandroferru...@gmail.com> wrote: > Hello, > I'm curious, what are the most popular methods to perform session > replication across http servers in PHP? > I've read about repcache(memcached module) and Mysql. > anything else? is there som

Re: [PHP] PHP session replication

2011-03-17 Thread Nick Williams
I have successfully and efficiently used MySQL-based database session storage for years, even on a website with 5,000 (very) active simultaneous users. I would highly recommend it. N On Mar 17, 2011, at 9:44 AM, Dan Joseph wrote: > On Thu, Mar 17, 2011 at 12:06 AM, Alessandro Ferrucci < > ales

Re: [PHP] PHP session replication

2011-03-17 Thread Dan Joseph
On Thu, Mar 17, 2011 at 12:06 AM, Alessandro Ferrucci < alessandroferru...@gmail.com> wrote: > I'm curious, what are the most popular methods to perform session > replication across http servers in PHP? > I personally just use MySQL and the session_set_save_handler() stuff attached to a class. M

[PHP] PHP session replication

2011-03-16 Thread Alessandro Ferrucci
Hello, I'm curious, what are the most popular methods to perform session replication across http servers in PHP? I've read about repcache(memcached module) and Mysql. anything else? is there some mod_php_session_replication httpd module? thanks -- Signed, Alessandro Ferrucci

Re: [PHP] php session GC error

2009-01-13 Thread Chris
Frank Stanovcak wrote: I'm trying to make sure that my sessions are timed out by my server. I'm running it on winxp, and my php.ini contains the following session.gc_probability = 1 session.gc_divisor = 1 ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up

[PHP] php session GC error

2009-01-13 Thread Frank Stanovcak
I'm trying to make sure that my sessions are timed out by my server. I'm running it on winxp, and my php.ini contains the following session.gc_probability = 1 session.gc_divisor = 1 ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collectio

[PHP] PHP session expiring too early?

2008-06-15 Thread gh
I am experiencing a strange bug after upgrading to PHP 5.2.4 with the Zend Optimizer 3.3.3. In two of our locally-hosted web applications, NolaPro and SugarCRM, the login sessions are expiring after 5 minutes of inactivity and I cannot figure why. The relevant values from my /etc/php.ini file

[PHP] PHP Session Vars & Flash Movie

2007-12-17 Thread Luis Magaña
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a small application made in flash, that uses a set of PHP scripts to pull data from a database. I've added sessions to this scripts so they would only return the data if a proper session has been initialized, the flash movie is hosted in a

RE: [PHP] Php session settings

2007-10-06 Thread Jeff Benetti
: Jeff Benetti Cc: php-general@lists.php.net Subject: Re: [PHP] Php session settings I almost always up the memory_limit in the php.ini. Set the memory limit to 16M, or 32M (the default is 8M). You want a higher memory_limit if you're working with big file uploads or creating images with p

Re: [PHP] Php session settings

2007-10-06 Thread Tom Friedhof
TECTED] > *Sent:* October 6, 2007 9:08 AM > *To:* Jeff Benetti > *Cc:* php-general@lists.php.net > *Subject:* Re: [PHP] Php session settings > > Jeff, > > is *memory_limit* > <http://docs.php.net/manual/en/ini.core.php#ini.memory-limit>the one youre > looking

RE: [PHP] Php session settings

2007-10-06 Thread Jeff Benetti
netti Cc: php-general@lists.php.net Subject: Re: [PHP] Php session settings Jeff, is <http://docs.php.net/manual/en/ini.core.php#ini.memory-limit> memory_limit the one youre looking for ? that sounds strange; im sure the default would be appropriate. i would recommend you create a script

Re: [PHP] Php session settings

2007-10-06 Thread Nathan Nobbe
Jeff, is *memory_limit*the one youre looking for ? that sounds strange; im sure the default would be appropriate. i would recommend you create a script to show the current values of the php.ini settings before you start changing them.

[PHP] Php session settings

2007-10-06 Thread Jeff Benetti
Hi all, I am new to PHP this is my second post to this group. I have tried using the following CMS systems on my web server (remote) Joomla CMS made simple Phpwebsite And more recently Coppermine photo album All of these apps use PHP heavily. None of these apps seem to run very well and they al

Re: [PHP] PHP Session variable

2007-03-27 Thread Davi
Em Terça 27 Março 2007 11:17, Chris Carter escreveu: > Hi, > > I have retrieved 4 values from database. Out of which 3 are displayed on > the same page and one variable, which is email address, needs to be carried > to the next page through a hyper link, the next page is actually a web > form. I ca

Re: [PHP] PHP Session variable

2007-03-27 Thread Richard Davey
Chris Carter wrote: session_start(); session_register ("tamma"); $HTTP_SESSION_VARS ["tamma"] = $email; Use $_SESSION. HTTP_SESSION_VARS is deprecated and hasn't been used since PHP 4.0.6 (or rather, shouldn't have been) You don't need session_register(). On the webform: $HTTP_SESSIO

Re: [PHP] PHP Session variable

2007-03-27 Thread Erik Jones
On Mar 27, 2007, at 9:17 AM, Chris Carter wrote: Hi, I have retrieved 4 values from database. Out of which 3 are displayed on the same page and one variable, which is email address, needs to be carried to the next page through a hyper link, the next page is actually a web form. I can do

[PHP] PHP Session variable

2007-03-27 Thread Chris Carter
Hi, I have retrieved 4 values from database. Out of which 3 are displayed on the same page and one variable, which is email address, needs to be carried to the next page through a hyper link, the next page is actually a web form. I can do this by either transferring that variable through query st

Re: [PHP] PHP Session

2006-06-19 Thread tedd
At 10:04 AM +0100 6/19/06, James Nunnerley wrote: >Hi Folks, > >-snip- > >Are we missing something, or is it really magic? It's really magic. I've written a very simple example (code included) at: http://www.weberdev.com/get_example-4349.html and demo at: http://xn--ovg.com/session As for CAP

Re: [PHP] PHP Session

2006-06-19 Thread David Tulloh
James Nunnerley wrote: > ... > > It works a treat, however what I want to understand is how the session is > kept relevant to that particular user's session - mainly because my boss > wants to check there's no security implication. > > ... > The session is stored on the server, typically in a

[PHP] PHP Session

2006-06-19 Thread James Nunnerley
Hi Folks, Bit of an unusual question here, which is basically as a result of my lack of understanding as to how Sessions work. I've created a Captcha image solution for an application I look after, and when we came to look into something that required debugging, I realized I'm using session

Re: [PHP] php session in ie

2005-11-15 Thread sunaram patir
On 11/14/05, Ford, Mike <[EMAIL PROTECTED]> wrote: > On 11 November 2005 18:47, sunaram patir wrote: > > > array(1) { ["PHPSESSID"]=> string(32) > > "337a44c0d6c9ed3cf4ba4e97d707589e" } is returned by firefox on calling > > var_dump($_COOKIE). NULL in ie. > > If the very same piece of PHP produces

RE: [PHP] php session in ie

2005-11-14 Thread Ford, Mike
On 11 November 2005 18:47, sunaram patir wrote: > array(1) { ["PHPSESSID"]=> string(32) > "337a44c0d6c9ed3cf4ba4e97d707589e" } is returned by firefox on calling > var_dump($_COOKIE). NULL in ie. If the very same piece of PHP produces different results in different browsers, this *MUST* be due t

Re: [PHP] php session in ie

2005-11-12 Thread sunaram patir
On 11/12/05, adriano ghezzi <[EMAIL PROTECTED]> wrote: > to be redirected to login must have at least one of ( > if(!isset($_SESSION['student_username']) && > !isset($_SESSION['student_password'])) ) > > not set, which one (or both) fail under i.e. ??? > > hth > if both of them aren't set, the user

Re: [PHP] php session in ie

2005-11-12 Thread adriano ghezzi
to be redirected to login must have at least one of ( if(!isset($_SESSION['student_username']) && !isset($_SESSION['student_password'])) ) not set, which one (or both) fail under i.e. ??? hth ag. 2005/11/11, sunaram patir <[EMAIL PROTECTED]>: > Hi, i am having problem with internet explorer

Re: [PHP] php session in ie

2005-11-11 Thread Stephen Leaf
if it's a risk then it's in my never get into the practice of doing this category. Passwords should always be used to verify and discarded. never saved in any form which can be seen directly or decoded. And true $_SESSION isn't a cookie.. however there are some systems that a cookie is used lik

Re: [PHP] php session in ie

2005-11-11 Thread Andras Kende
- Original Message - From: "sunaram patir" <[EMAIL PROTECTED]> To: Sent: Friday, November 11, 2005 5:31 AM Subject: [PHP] php session in ie Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
Try setting session.use_cookies to "Off" so PHP won't even try to use Cookies. On Fri, November 11, 2005 12:49 pm, sunaram patir wrote: > On 11/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: >> >> > session_start(); >> > session_cach

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
On 11/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: > >> > session_start(); > > session_cache_limiter('private_no_expire'); > > session_set_cookie_params(0,"/","schools.zenrays.com"); > > when i call var_dump($_COOKIE), it returns nul

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
array(1) { ["PHPSESSID"]=> string(32) "337a44c0d6c9ed3cf4ba4e97d707589e" } is returned by firefox on calling var_dump($_COOKIE). NULL in ie. On 11/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: > >> > session_start(); > > session_cache

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
On Fri, November 11, 2005 12:06 pm, sunaram patir wrote: >> > session_start(); > session_cache_limiter('private_no_expire'); > session_set_cookie_params(0,"/","schools.zenrays.com"); > when i call var_dump($_COOKIE), it returns null. i can't make out > what's happening! Is $_COOKIE NULL in the

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
He's not storing the password in a Cookies. He's storging it in a $_SESSION Which is still a Risk, especially on a shared server, but it's not necessarily in the category of "Never do this" On Fri, November 11, 2005 9:48 am, Stephen Leaf wrote: > For security.. *never* store the password in a c

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
> > instead of bouncing the user's agent back and forth > > > session_cache_limiter('private_no_expire'); > > session_set_cookie_params(0,"/","schools.zenrays.com"); > > session_start(); > > ... will probably not match this one here. > > You've set the Cookie Parameters here to very specific values

Re: [PHP] php session in ie

2005-11-11 Thread Richard Lynch
On Fri, November 11, 2005 5:20 am, sunaram patir wrote: > session_start(); This one here... (see below) > header("Location: login.php"); Not crucial, but you'd save some HTTP connections by just doing: require 'login.php'; exit; instead of bouncing the user's agent back and forth > s

Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
i will for sure. thanks. On 11/11/05, M <[EMAIL PROTECTED]> wrote: > Stephen Leaf wrote: > > For security.. *never* store the password in a cookie.. > > OP stores the password in session > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

Re: [PHP] php session in ie

2005-11-11 Thread M
Stephen Leaf wrote: For security.. *never* store the password in a cookie.. OP stores the password in session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php session in ie

2005-11-11 Thread Stephen Leaf
For security.. *never* store the password in a cookie.. if you must... instead do some sort of encryption on it and some other value store that and use it for verification. On Friday 11 November 2005 05:43 am, sunaram patir wrote: > Hi, i am having problem with internet explorer. i am working on

Re: [PHP] php session in ie

2005-11-11 Thread M
sunaram patir wrote: Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. It might not fix your p

Re: [PHP] php session in ie

2005-11-11 Thread Marcus Bointon
On 11 Nov 2005, at 11:43, sunaram patir wrote: it works fine in firefox and msn explorer. in internet explorer, when i visit to a link in any page it asks for the login details again. could anyone please help me out?! It just sounds like you have cookies disabled or not allowed for this sit

[PHP] php session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. if the user is not logged in, it redirects to

[PHP] php session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. if the user is not logged in, it redirects to

[PHP] php session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. if the user is not logged in, it redirects to

[PHP] php session variables limited to 1 character -- please help

2005-10-24 Thread Zac Smith
Hi! I've got a very strange issue that is basically cutting off session variable data after 1 character. When I set the session variable as "50" it comes back as "5". When I set it to "XYZ" it comes back as "X". I have a script that is taking $_GET['State'] variable and setting it to a sessi

Re: [PHP] php session

2005-06-14 Thread Richard Lynch
On Tue, June 14, 2005 7:02 am, balwantsingh said: > i have made a script where we have mounted one directory of webserver to > another directory of a system. > the php script runs in every 2 min. with the help of cronjob and insert > all the data of the directory in mysql. > the problem comes now w

[PHP] php session

2005-06-14 Thread balwantsingh
i have made a script where we have mounted one directory of webserver to another directory of a system. the php script runs in every 2 min. with the help of cronjob and insert all the data of the directory in mysql. the problem comes now when the link between above two systems breaks & php is do

Re: [PHP] PHP Session Handlers

2004-05-12 Thread Paul Higgins
PROTECTED]> To: "Paul Higgins" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: Re: [PHP] PHP Session Handlers Date: Wed, 12 May 2004 15:14:36 -0400 From: "Paul Higgins" <[EMAIL PROTECTED]> > I just read this tutorial: > http://www.phpbuilder.com/co

  1   2   >