[Rails] Re: authentication and user management questions

2009-03-02 Thread Shilo Ayalon
MaD wrote: at least that token-problem is solved. but it's still weird, cause that session_expiry code is actually working on one of my apps. are you sure you don't have some sort of typo? (sth. like instead of ) i would debug that piece of code to see, why the session is reset. btw:

[Rails] Re: authentication and user management questions

2009-02-27 Thread MaD
at least that token-problem is solved. but it's still weird, cause that session_expiry code is actually working on one of my apps. are you sure you don't have some sort of typo? (sth. like instead of ) i would debug that piece of code to see, why the session is reset. btw: 1800 sec is of course

[Rails] Re: authentication and user management questions

2009-02-26 Thread sa 125
just to make sure: you are using active_record_store now, right? Yeah. try to delete your browser's cookies and cache as well as your session table. maybe you have a conflict with one of the old sessions/cookies. Deleted all cookies, cache and authenticated sessions (in firefox -

[Rails] Re: authentication and user management questions

2009-02-26 Thread sa 125
It seems the problem stemmed from the session_expiry check: for automatical timeout and removal put the following in your application controller: # session-timeout after inactivity of one hour. MAX_SESSION_PERIOD = 1800 before_filter :session_expiry #-- this was the problem

[Rails] Re: authentication and user management questions

2009-02-25 Thread MaD
for your permissions problem I'd suggest the implementation of roles or groups. that way you can add users to groups or give them roles, which can be checked in a before_filter in your controllers. sessions: if you are using activerecordstore (and thus your sessions are saved in a db-table)

[Rails] Re: authentication and user management questions

2009-02-25 Thread sa 125
MaD wrote: for your permissions problem I'd suggest the implementation of roles or groups. that way you can add users to groups or give them roles, which can be checked in a before_filter in your controllers. I thought about creating groups, but then won't this complicate things? I'll have

[Rails] Re: authentication and user management questions

2009-02-25 Thread MaD
I thought about creating groups, but then won't this complicate things? I'll have group_pages table, and how do I manage those? can a user belongs to many groups? it's actually best to create a many-to-many relationship (user habtm groups). there are many plugins outthere that provide just