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:
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
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 -
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
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)
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
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
7 matches
Mail list logo