CodeIgniter Forums
codeigniter login logout issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: codeigniter login logout issue (/thread-541.html)



codeigniter login logout issue - drhouse7x - 12-15-2014

Hi,

I had a very long discussion with the owner of my php script, but no solution and I'm a bit frustrated.
This is my problem with codeigniter:

on login, when someone try to enter, the script refresh the page but nothing change, it doesn't show the user name and picture profile...only if you hit f5 from keyboard you can view your profile.
Another strage thing is this...if you do this: login-f5-logout-f5-login-f5-logout at this point you cannot exit at all.

my website with login problem

I'm on ec2 istance so no way to give you full ftp access.
I use my server for other websites and I don't have ANY issue with wordpress installation.

these are my specs:

Code:
Versione del server: 5.5.40-0ubuntu0.14.04.1 - (Ubuntu)
Apache/2.4.7 (Ubuntu)
Versione del client del database: libmysql - 5.5.40
Estensioni PHP: mysqli
php version: 5.5.9-1ubuntu4.5
codeigniter: latest version

What could be the problem?
Thanks


RE: codeigniter login logout issue - Rufnex - 12-16-2014

Can you post your login script?


RE: codeigniter login logout issue - drhouse7x - 12-16-2014

(12-16-2014, 01:54 AM)Rufnex Wrote: Can you post your login script?

Hi Rufnex,
thanks for reply, this is the login part.


RE: codeigniter login logout issue - FaraonX - 12-16-2014

It's hard to see the problem when we don't know code.
First thing:
That looks like you are going to next page and then you update your login data. So look on your redirect.
Second one (abaut refreshing):
Look to your Cookies what you have here. Maybe you have mistake in deleting login data.


RE: codeigniter login logout issue - Rufnex - 12-16-2014

Try to remove refresh from your redirect in music.php line 1175

redirect(base_url()."#!/login");


RE: codeigniter login logout issue - drhouse7x - 12-16-2014

(12-16-2014, 03:30 AM)Rufnex Wrote: Try to remove refresh from your redirect in music.php line 1175

redirect(base_url()."#!/login");

made it but it doesn't work...nothing seems different


RE: codeigniter login logout issue - Rufnex - 12-16-2014

I think it's a problem with your ajax login. A similar problem are discussed here http://forum.codeigniter.com/thread-537.html


RE: codeigniter login logout issue - drhouse7x - 12-16-2014

(12-16-2014, 04:20 AM)Rufnex Wrote: I think it's a problem with your ajax login. A similar problem are discussed here http://forum.codeigniter.com/thread-537.html
Thank you, I will try something suggested on that post