Thanks to your suggestion regarding cookies, using Wireshark I
understood the problem.
The problem appends because I replaced the "welcome" application with
a symbolic link to my application, so the main page point to "welcome"
meanwhile the ajax calls refers to "myapplication". I solved the
problem setting "myapplication" as default application.


On Aug 18, 12:52 pm, angleto <angl...@gmail.com> wrote:
> Some further detail, I store sessions on mysql, hereafter the relevant
> line of code from the model:
>
> db = DAL('mysql://username:password@localhost/db', pool_size=10)
> session.connect(request, response, db=db)
> #session.connect(request, response, db=db,
> masterapp=request.application)
>
> from gluon.tools import *
> mail = Mail()
> auth = Auth(globals(),db)
> crud = Crud(globals(),db)
> service = Service(globals())
> plugins = PluginManager()
> ..
>
> There is anything wrong?
> I tried also to delete cookies and reset session from db, but the
> problems is still the same.
>
> On Aug 17, 11:17 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Strange I never had this problem. I used those browsers without issue.
> > Can anybody else reproduce this?
>
> > On Aug 17, 2:00 pm, angleto <angl...@gmail.com> wrote:
>
> > > On Aug 17, 8:11 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
> > > wrote:
>
> > > > This may be a browser issue, the ajax call is not padding cookies.
> > > > Which browser?
>
> > > I can reproduce the problem with:
> > > - Chrome 14.0.835.94 beta
> > > - Firefox 5.0.1
> > > - Safari 5.1 (7534.48.3)
>
> > > Do you think that using CAS could solve the problem ?
> > > thanks
>
> > > > On Aug 17, 11:15 am, angleto <angl...@gmail.com> wrote:
>
> > > > > Hello, in my application I'm using both the embedded Auth module and
> > > > > ajax calls. Everything works fine with synchronous functions, but I
> > > > > have problems with ajax calls. Seems that each ajax call initialize a
> > > > > new session and despite the fact that I'm logged in the ajax functions
> > > > > still require me to login because auth.user is not initialized. I
> > > > > tried both trunk and stable version of web2py but the problem is the
> > > > > same, somebody can help me?
> > > > > thanks

Reply via email to