LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-21-2003, 07:00 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
good use of php sessions


hi, i'm getting going with PHP and am sussing out how to use sessions to store data and the likes. I'm currently saving multiple sets of data in normal XML files which i load each time i choose them. As i'm using sessions to hodl short term data i'm left thinking that i could always just keep this data active inside a session rather than using seperate files. this would give me much more flexibility in what i can do with the data, but i'm windering if this is technically a really bad idea, as effectively i'm saying i'd have one session... ever.

Would this be bad usage of a session?
 
Old 07-22-2003, 06:36 PM   #2
youngstorm
Member
 
Registered: May 2003
Location: Valdosta, GA, USA
Distribution: Fedora 14, Windoze XP & 7
Posts: 225

Rep: Reputation: 31
Hi,
I think it is a dab idea. Nothing personal
for data storage, consider a database.
quick, easy, and thouroghly testing.
good luck
Michael
 
Old 07-23-2003, 02:21 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Original Poster
Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well I think i'll forget that all and for a full blown mysql database. not sure why i didn't want one really...

but i didn't think it was a nice thing to do, thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php sessions problems MaestroC Suse/Novell 2 12-06-2005 08:06 AM
sessions in PHP zowey Programming 2 12-26-2004 06:35 PM
Problem with php sessions sashhoney Linux - Software 7 08-28-2003 07:30 AM
Apache PHP and sessions Satriani Programming 0 04-21-2003 11:55 AM
PHP Sessions RecoilUK Programming 1 04-21-2002 05:57 AM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration