i have a message that is passed on to the user on the page (say if they write in a wrong email address or password) but it’s also shown in the url.
http://domain/login?message=You%20have%20been%20logged%20out%20of%20site.
this is an example. shows the user has logged out. another ?message could be “you have typed a wrong password” (with %20 for spaces of course)
how do i get rid of that? and just either have them re-direct to /login or something like /login/leave or login/wrong-info
It seems you’re passing the message with
$_GET. You better use the sessionsflashdata()function that comes with CI. Here’s the link. Search for Flashdata.