SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot Packetloss's Avatar
    Join Date
    Aug 2003
    Location
    Behind You
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up PHP Sessions with Load Balancing

    Hi,

    I have multiple servers load-balancing my website, however I am having problems with PHP working with sessions. At the moment I'm using DNS Round Robin to load balance, therefore every few pages the user gets sent to a new server. When this happens his session is lost and a new one is created on the new server. Is there a way to work around this?

    Thanks in advance!
    My links: [ Blog ] - [ deviantArt ]

  2. #2
    get into it! bigduke's Avatar
    Join Date
    May 2004
    Location
    Australia
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could use a custom session handler that stores the info in the db and is independent of the server being accessed.
    I'll need to look for that thread with the code for this.


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
  •