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 01-18-2016, 03:09 AM   #1
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Rep: Reputation: 29
PHP and sessions


How many users can be online before it becomes necessary to use 'SESSIONS'?
 
Old 01-18-2016, 03:18 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,860
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Unrelated. If you don't need sessions in your code, then you don't need $_SESSION in your code. A 'session' is a sequence of a user's actions, typically something like this: login-search-read-modify-search-insert-...-logout
 
Old 01-18-2016, 04:00 AM   #3
Dafydd
Member
 
Registered: Oct 2008
Posts: 344

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by NevemTeve View Post
Unrelated. If you don't need sessions in your code, then you don't need $_SESSION in your code. A 'session' is a sequence of a user's actions, typically something like this: login-search-read-modify-search-insert-...-logout
That is exactly what I want to happen.

Perhaps I ask the wrong question. What would happen if 6000 users logged on within a 20 second period to search the same database for different information?
 
Old 01-18-2016, 04:11 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,860
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
That might or might not overload your servers (the web-server, the database-server or both).
 
Old 01-18-2016, 07:25 AM   #5
teapottwo
Member
 
Registered: Sep 2013
Posts: 52

Rep: Reputation: Disabled
Do you mean when to use session ID's or when to use session variables based on the session ID.
 
  


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 + mysql + old sessions wh33t Programming 1 08-26-2010 12:47 AM
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
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 04:22 AM.

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