Home › Forums › Back End › Nice Profile URL? › Re: Nice Profile URL?
February 2, 2012 at 2:35 pm
#96036
Member
Is the whole site login only? Do you always have access to a session username?
If so the login page needs to redirect on success to /profile/username
and then you can just use the session username to fill variables with
SELECT * from users WHERE username = $username
If you have session variables always set then you don’t need to be passing the username or id back to the profile page, as they will be set in the session.