Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Nice Profile URL? Re: Nice Profile URL?

#96036
bungle
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.