Re: [PHP] Persistent state applications

2008-05-17 Thread Al
Ive starting using Pear cache_lite(). Works great for maintaining stuff between page refreshes. You can set the retention time to anything reasonable. tedd wrote: At 12:34 PM -0700 5/17/08, James Colannino wrote: Hey everyone! I'm very new to PHP, and had a somewhat general question (forgive

Re: [PHP] Persistent state applications

2008-05-17 Thread tedd
At 1:22 PM -0700 5/17/08, James Colannino wrote: tedd wrote: James: Hey tedd, thanks for the response! 1. A $_SESSION variable; After googling briefly on the subject of sessions, it looks like this is probably the way I'd want to go. I like this idea, because I can modularize the code

Re: [PHP] Persistent state applications

2008-05-17 Thread Eric Butera
On Sat, May 17, 2008 at 4:22 PM, James Colannino <[EMAIL PROTECTED]> wrote: > I'm assuming that a session will last as long as the browser is open (or > until it's explicitly destroyed), correct? Are there any security issues I > should be aware of? Since there's a login, I'd be serving this over

Re: [PHP] Persistent state applications

2008-05-17 Thread Larry Garfield
1) PHP applications are built on the concept of shared-nothing. Every page request is, and should be, entirely independent of another. That is by design. It's weird if you're used to stateful programming (desktop, JSP, etc.), but it is actually very powerful. 2) If you really need to persist

Re: [PHP] Persistent state applications

2008-05-17 Thread James Colannino
tedd wrote: James: Hey tedd, thanks for the response! 1. A $_SESSION variable; After googling briefly on the subject of sessions, it looks like this is probably the way I'd want to go. I like this idea, because I can modularize the code and call different php scripts for different acti

Re: [PHP] Persistent state applications

2008-05-17 Thread Eric Butera
On Sat, May 17, 2008 at 3:34 PM, James Colannino <[EMAIL PROTECTED]> wrote: > Hey everyone! I'm very new to PHP, and had a somewhat general question > (forgive me if it's too broad in scope.) Basically, I'd like to be able to > have a single PHP application that remembers its state as users click

Re: [PHP] Persistent state applications

2008-05-17 Thread tedd
At 12:34 PM -0700 5/17/08, James Colannino wrote: Hey everyone! I'm very new to PHP, and had a somewhat general question (forgive me if it's too broad in scope.) Basically, I'd like to be able to have a single PHP application that remembers its state as users click on links. When the user cl

[PHP] Persistent state applications

2008-05-17 Thread James Colannino
Hey everyone! I'm very new to PHP, and had a somewhat general question (forgive me if it's too broad in scope.) Basically, I'd like to be able to have a single PHP application that remembers its state as users click on links. When the user clicks on a link, though, the user unavoidably re-re