LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

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,417

Original Poster
Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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



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 / openSUSE 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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration