Announcement

Collapse
No announcement yet.

User session hash on /login.php redirect

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Paul M
    replied
    Have you looked in it to see ?

    Leave a comment:


  • Albasoul
    replied
    Originally posted by Paul M View Post
    Cant you just use their userid ?
    How do i reference the userid in the navbar template?

    Leave a comment:


  • Paul M
    replied
    Cant you just use their userid ?

    Leave a comment:


  • Albasoul
    replied
    Thanks Paul.

    Can anyone help with this?

    Leave a comment:


  • Paul M
    replied
    Originally posted by Albasoul View Post
    P.S I am running an older version of vbulletin: 3.6.8
    You posted in the vB4 section, I have moved it for you.

    Leave a comment:


  • Albasoul
    started a topic User session hash on /login.php redirect

    User session hash on /login.php redirect

    Hi all,

    I need some help with php/vbulletin templating system. I have setup nginx as reverse proxy which caches every single page on the site for 1 minute. This works great for visitors(not logged in users) and also logged in users. For logged in users, i cache every single page by appending user's bbsessionhash cookie value. This is working great and the site is super fast, my only problem is with the login process.

    Since the user can login from the nav_bar by filling out the form on any page on the site, the login redirect is landing the user on the same cached page. Since the redirect is setting the bbsessionhash cookie value for the first time, the user sees the "Login successfull" redirect screen but than lands on the previous cached copy of that page in the browser.

    So what i need is to update the login template, to append a unique identifier to the redirect url: something like ?loginhash=<some_unique_session_id> so that when the user logs in i can bust the browser cache.

    The unique identifier can be anything, current time in nanoseconds, php session id, etc. It just has to be unique for that specific user. I don't know much about vbulletin's templating system, that is why i need help.

    Once i solve this last remaining problem, i will write a tutorial for it.

    Thanks in advance.

    P.S I am running an older version of vbulletin: 3.6.8

Related Topics

Collapse

Working...
X