SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Guru DeNasio's Avatar
    Join Date
    May 2001
    Posts
    830
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using session with heavy traffic website

    Hello,

    If you use session on every page of a heavy traffic website, will this significantly reduce the performance of your server? Or not at all?
    Ballot-Box.net - free polls for webmasters
    FormLog.com - free form processor

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    define 'heavy traffic'

  3. #3
    SitePoint Guru DeNasio's Avatar
    Join Date
    May 2001
    Posts
    830
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Say a website with 50.000 hits a day.
    Ballot-Box.net - free polls for webmasters
    FormLog.com - free form processor

  4. #4
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    ~2000 hits an hour.. shouldnt be too much of a drag, unless you're doing something silly like filling the session with files.

  5. #5
    SitePoint Guru DeNasio's Avatar
    Join Date
    May 2001
    Posts
    830
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you mean with filling the session with files?
    Ballot-Box.net - free polls for webmasters
    FormLog.com - free form processor

  6. #6
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DeNasio View Post
    Hello,

    If you use session on every page of a heavy traffic website, will this significantly reduce the performance of your server? Or not at all?
    if session variables are stored in RAM then its going to slowly bring down the performance of server and if it is on shared web hosting then the web host would haver restricted by allocation of m/y per web app and that might shut down your website for sometime when there is a peak traffic.

  7. #7
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DeNasio View Post
    What do you mean with filling the session with files?
    PHP Code:
    $_SESSION['user pic'] = file_get_contents(somefile); 


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •