CodeIgniter Forums
A tutorial about Ion Auth and authentication in CI3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Learn More (https://forum.codeigniter.com/forumdisplay.php?fid=15)
+--- Thread: A tutorial about Ion Auth and authentication in CI3 (/showthread.php?tid=63415)

Pages: 1 2 3


RE: A tutorial about Ion Auth and authentication in CI3 - fangstar - 01-12-2017

(10-28-2015, 06:21 AM)Avenirer Wrote: Maybe you will find out that I speak too much about Ion Auth, given my previous tutorial series regarding the creation of a multilanguage site (http://avenir.ro/create-cms-using-codeigniter-3/)...

And yet, I keep seeing people having trouble understanding how Ion Auth works. So I will start a new tutorial series about using Ion Auth for creating an authentication system. Hope you enjoy it.

http://avenir.ro/authentication-system-with-ion-auth-and-ci3/

Thanks for the series reading through them now.  Couldn't find a way to leave comments on your site so I'll ask it here.  Why Ion Auth over Community Auth? Maybe a blog post would be nice.  I've been playing with Community Auth for a day now.  It's pretty comprehensive and more than I need. Going to try out Ion Auth via your posts today.


RE: A tutorial about Ion Auth and authentication in CI3 - Toddles - 04-15-2017

(10-28-2015, 06:21 AM)Avenirer Wrote: Maybe you will find out that I speak too much about Ion Auth, given my previous tutorial series regarding the creation of a multilanguage site (http://avenir.ro/create-cms-using-codeigniter-3/)...

And yet, I keep seeing people having trouble understanding how Ion Auth works. So I will start a new tutorial series about using Ion Auth for creating an authentication system. Hope you enjoy it.

http://avenir.ro/authentication-system-with-ion-auth-and-ci3/

Have tried twice with Avenir's tutorial. Never works


RE: A tutorial about Ion Auth and authentication in CI3 - Avenirer - 04-15-2017

(04-15-2017, 03:32 PM)Toddles Wrote:
(10-28-2015, 06:21 AM)Avenirer Wrote: Maybe you will find out that I speak too much about Ion Auth, given my previous tutorial series regarding the creation of a multilanguage site (http://avenir.ro/create-cms-using-codeigniter-3/)...

And yet, I keep seeing people having trouble understanding how Ion Auth works. So I will start a new tutorial series about using Ion Auth for creating an authentication system. Hope you enjoy it.

http://avenir.ro/authentication-system-with-ion-auth-and-ci3/

Have tried twice with Avenir's tutorial.  Never works


For real? Did you set up the sessions?


RE: A tutorial about Ion Auth and authentication in CI3 - PaulD - 04-16-2017

I thought it was a great tutorial. I am sure many new users will find it very handy to follow.

Shame about the russian dating adverts, does make it feel a bit..., well..., you know.


RE: A tutorial about Ion Auth and authentication in CI3 - Avenirer - 04-16-2017

Russian dating adverts??? I only have Google AdSense, which offers ads depending on visitor's browsing history. Here's a tip: when visiting pornhub or Russian torrent websites, try to visit the website with the browser set to "incognito".

On a more serious note, although there are people that don't like ads on websites, I do have to gain something from my work. And although I tried to live from "good job, man" or "you're doing great tutorials" I did find out that I can't feed my family on those. Not that 70 euros from Google every two years will feed my family...


RE: A tutorial about Ion Auth and authentication in CI3 - PaulD - 04-16-2017

Lol - cannot imagine why google adsense thinks I want to see dating sites. Anyway - nothing wrong with google ads.

Selling scripts on sites like envato codecanyon and probably many others can be quite lucrative. But it is a lot of work up front and because of the way those sites work, you only really have a small window to make an impact, or you fall into the swampy masses and never get seen.


RE: A tutorial about Ion Auth and authentication in CI3 - lanoux - 06-14-2017

Hy avenir, same problem for me.

Ion Auth worke great just afetr the login page, then when i refresh the page or try to go in another page, the session is lost.

when i print it i have the displeasure to see the array changing and loosing the identity field.

session array just after login:
Code:
Array
(
   [__ci_last_regenerate] => 1497439902
   [email] => [email protected]
   [user_id] => 1
   [old_last_login] => 1497441769
   [identity] => [email protected]
   [__ci_vars] => Array
       (
           [identity] => old
           [message] => old
       )

   [message] => <p>Ok</p>
)

session after refreshing the page or moving in another page of the loged area:
Code:
Array
(
   [__ci_last_regenerate] => 1497439902
   [email] => [email protected]
   [user_id] => 1
   [old_last_login] => 1497441769
)
 

It's seem i am not the only one facing this strange behavior : ion auth issue


RE: A tutorial about Ion Auth and authentication in CI3 - Avenirer - 06-14-2017

@lanoux Did you set up the sessions library?


RE: A tutorial about Ion Auth and authentication in CI3 - lanoux - 06-14-2017

(06-14-2017, 07:22 AM)Avenirer Wrote: @lanoux Did you set up the sessions library?

the session is set normally in my autoload like this

$autoload['libraries'] = array('database','session','encryption','minify');
$autoload['drivers'] = array('session');

the tabale ci_sessions is create and worke like i log session inside


RE: A tutorial about Ion Auth and authentication in CI3 - Avenirer - 06-15-2017

Make sure that you have latest version of CI, and, if you don't mind, show me the sessions config.