You can create it in the view in web2py. It is not a good idea. It
would not be visible in the model and controller until reload.

On May 12, 11:20 pm, ionel <ionelanton...@gmail.com> wrote:
> Yes, you are right! I was creating the session variable in the View,
> not in the Controller.
> Oh, poor me! This is my ASP background. There I can create a session
> variable anywhere.
> Thanks.
>
> ionel
>
> On May 13, 12:02 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
>
> > session['fav_color'] = "blue" works just fine.
>
> > session is just a gluon/storage.Storage() class. which is a subclass
> > of "dict" and it only provides an extra method to give you the
> > attribute access to make things easier. Otherwise works exactly like
> > any other python dictionary.
>
> > You can use the session object EXACTLY like in django.
>
> > You CAN create dynamic session variables just as long as your keys are
> > valid in that use... your just doing something wrong, may we see your
> > code that is causing the exception?
>
> > --
> > Thadeus
>
> > On Wed, May 12, 2010 at 10:48 PM, ionel <ionelanton...@gmail.com> wrote:
> > > r frameworks and django also do th

Reply via email to