CodeIgniter Redirect to Current Page URL After Logout ?

In CodeIgniter you can get current page URL using CodeIgniter URL helper function current_url().

Now you knew how to get current page URL, then append the current page URL to logout URL, here is the code

now in your logout method should be something like this :

Post By:Arjun
Website: arjunphp.com

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

0 0 vote
Article Rating
Subscribe
Notify of
guest
4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
tet
tet
5 years ago

not work

arjun
5 years ago
Reply to  tet

Let me know more about the problem

tet
tet
5 years ago
Reply to  arjun

This d, if it is then change the left property of the label element.

PICCORO McKAY Lenz
4 years ago

this methos does not work, its crappy due the base64encode generates some chars not allowed for redirect

DMCA.com Protection Status
4
0
Would love your thoughts, please comment.x
()
x