i have a problem checking a session. i want to check if the session
exists, and then redirect somewhere, but in the if-loop, if the session
doesnt exist, i become an error
im trying to do something like:
if @session[‘user’] == nil
redirect_to …
else
redirect_to …
end
but as i said, the loop doesnt work, because i become the error before
it checks.
how can i check, if a session exist or not?