Re: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Richard Quadling
On 15 August 2011 19:43, LAMP wrote: > Hi all, > This is THE question that bothers me for a while... I always was keeping > session info, like user ID, organization ID, selected book ID... within > $_SESSION array. Main reason is to access and maintain it faster than > keeping them inside session

[PHP] Newbie question. What is the best structure of a php-app?

2011-08-15 Thread Andreas
Hi, I'm fairly new to PHP but not to programming as such. Currently I sat up XAMPP with xdebug, Netbeans and Eclipse to get a feeling. I can write and run php-files but I am wondering how I should construct a more complex application that runs over several pages between a login and a logout.

Re: Fwd: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Andrew Ballard
On Mon, Aug 15, 2011 at 4:33 PM, Ashley Sheridan wrote: > > >> On Mon, 2011-08-15 at 14:12 -0500, Philip Thompson wrote: >> Crap! I wish this list would have a reply-to list automatically > > It does, just hit the reply to all or reply to list button on your email > client. I know Gmail has bo

Re: Fwd: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Ashley Sheridan
> On Mon, 2011-08-15 at 14:12 -0500, Philip Thompson wrote: > Crap! I wish this list would have a reply-to list automatically It does, just hit the reply to all or reply to list button on your email client. I know Gmail has both these options, and the client I use (Evolution) does and is ava

Re: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Philip Thompson
On Mon, Aug 15, 2011 at 2:36 PM, Stuart Dallas wrote: > > On 15 Aug 2011, at 20:28, LAMP wrote: > > > > > On Aug 15, 2011, at 2:11 PM, Philip Thompson wrote: > > > >> On Mon, Aug 15, 2011 at 1:43 PM, LAMP wrote: > >> Hi all, > >> This is THE question that bothers me for a while... I always was k

Re: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Stuart Dallas
On 15 Aug 2011, at 20:28, LAMP wrote: > > On Aug 15, 2011, at 2:11 PM, Philip Thompson wrote: > >> On Mon, Aug 15, 2011 at 1:43 PM, LAMP wrote: >> Hi all, >> This is THE question that bothers me for a while... I always was keeping >> session info, like user ID, organization ID, selected book

Re: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread LAMP
On Aug 15, 2011, at 2:11 PM, Philip Thompson wrote: On Mon, Aug 15, 2011 at 1:43 PM, LAMP wrote: Hi all, This is THE question that bothers me for a while... I always was keeping session info, like user ID, organization ID, selected book ID... within $_SESSION array. Main reason is to acces

Fwd: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Philip Thompson
Crap! I wish this list would have a reply-to list automatically -- Forwarded message -- From: Philip Thompson Date: Mon, Aug 15, 2011 at 2:11 PM Subject: Re: [PHP] Keeping session info in $_SESSION or in database? To: LAMP On Mon, Aug 15, 2011 at 1:43 PM, LAMP wrote: > Hi

Re: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Stuart Dallas
On 15 Aug 2011, at 19:43, LAMP wrote: > This is THE question that bothers me for a while... I always was keeping > session info, like user ID, organization ID, selected book ID... within > $_SESSION array. Main reason is to access and maintain it faster than keeping > them inside session table.

[PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread LAMP
Hi all, This is THE question that bothers me for a while... I always was keeping session info, like user ID, organization ID, selected book ID... within $_SESSION array. Main reason is to access and maintain it faster than keeping them inside session table. And, also, one less mysql connec