Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived General Discussion
Session Problem
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
Session Problem
El Forum
Guest
#1
07-22-2008, 12:48 AM
[eluser]Sawariya[/eluser]
Hi Friends
I am facing some problem in session... if i am coming back to login page After log in how to redirect into same page instead of showing login page..
any idea??\
thanks in advance??
El Forum
Guest
#2
07-22-2008, 12:57 AM
[eluser]Pascal Kriete[/eluser]
Check if the user is logged in and redirect? (that's really all there is to it
) Where you send them is up to you.
El Forum
Guest
#3
07-22-2008, 01:44 AM
[eluser]Sawariya[/eluser]
Thank you inparo..
I am checking authentication in controller.. but if somebody has click on browser's bck button its going to login page.. dat i need to stop..its possible??
El Forum
Guest
#4
07-22-2008, 01:53 AM
[eluser]Pascal Kriete[/eluser]
Sure is. You probably have some sort of is_logged_in() function, so you can use that in your login controller.
Code:
if ($this->auth->is_logged_in() )
{
redirect('member/home');
}
El Forum
Guest
#5
07-22-2008, 04:34 PM
[eluser]stuffradio[/eluser]
In my login library I wrote, I have a session called checkSession. If the session is true, it redirects.
Just like what inparo has
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB