List Info

Thread: Can't actualize variable session




Can't actualize variable session
country flaguser name
United States
2007-06-27 20:17:02
Hi,

I have a variable session, session[:old_controller] that I m
using to
make some fancy effect on my menu.
However since recetly, I have no idea but this variable
refuse to be
actualized...
I am doing a <% session[:old_controller]=controller.controller_name
%> but at the next request, if I check the value of
session[:old_controller] it didn't change...

I have no idea why, especially since I don't think I touch
anything
about session since it was working just fine...

Any idea?

Cheers,
Chewbie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can't actualize variable session
country flaguser name
United States
2007-06-27 20:41:57
I forgot to say that everything is working fine when you are
loggin,
the bug occurs only when you're not...
But I have no idea what is it changing...

On Jun 27, 8:17 pm, Chewbie <Chew...gmail.com> wrote:
> Hi,
>
> I have a variable session, session[:old_controller]
that I m using to
> make some fancy effect on my menu.
> However since recetly, I have no idea but this variable
refuse to be
> actualized...
> I am doing a <% session[:old_controller]=...controller.controller_name
> %> but at the next request, if I check the value of
> session[:old_controller] it didn't change...
>
> I have no idea why, especially since I don't think I
touch anything
> about session since it was working just fine...
>
> Any idea?
>
> Cheers,
> Chewbie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can't actualize variable session
country flaguser name
United States
2007-06-27 23:03:44
I finally found the answer...
My authentification module was returning a "return
false" when the
user was not identified, and this seemed to block
everything...
I must admit I don t understand why, if someone can explain
this to me
I would really appreciate...

Thx
Chewbie

On Jun 27, 8:41 pm, Chewbie <Chew...gmail.com> wrote:
> I forgot to say that everything is working fine when
you are loggin,
> the bug occurs only when you're not...
> But I have no idea what is it changing...
>
> On Jun 27, 8:17 pm, Chewbie <Chew...gmail.com> wrote:
>
> > Hi,
>
> > I have a variable session,
session[:old_controller] that I m using to
> > make some fancy effect on my menu.
> > However since recetly, I have no idea but this
variable refuse to be
> > actualized...
> > I am doing a <%
session[:old_controller]=...controller.controller_name
> > %> but at the next request, if I check the
value of
> > session[:old_controller] it didn't change...
>
> > I have no idea why, especially since I don't think
I touch anything
> > about session since it was working just fine...
>
> > Any idea?
>
> > Cheers,
> > Chewbie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )