SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Jan 2003
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Session Problem (was: some one please help :()

    hi,

    on my site i have a login page where users can login the problem is

    when a user log's in i set a sessions with the user id example

    Session["UID"] = 10 or something

    i check on every page if there is a sesion set

    the problem is some times the sessions is broken and even though you are logged in it sends you back to the login page

    can any one help me

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2004
    Location
    California
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When does the session reset? After a certain period of time (that you've noticed)? After you leave the website and come back? etc.

    Also, for future note, to set headers in rails you just do:
    Code:
    headers['Cache-control'] = 'private'
    Happy switcher to OS X running on a MacBook Pro.

    Zend Certified Engineer


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
  •