• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A tutorial about Ion Auth and authentication in CI3

#11
(10-28-2015, 07: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-w...h-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.
Reply

#12
(10-28-2015, 07: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-w...h-and-ci3/

Have tried twice with Avenir's tutorial. Never works
Reply

#13
(04-15-2017, 04:32 PM)Toddles Wrote:
(10-28-2015, 07: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-w...h-and-ci3/

Have tried twice with Avenir's tutorial.  Never works


For real? Did you set up the sessions?
Reply

#14
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.
Reply

#15
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...
Reply

#16
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.
Reply

#17
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 : [url= : https://github.com/benedmunds/CodeIgnite...s/1023]ion auth issue[/url]
Reply

#18
@lanoux Did you set up the sessions library?
Reply

#19
(06-14-2017, 08: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
Reply

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
2 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.