Hi, in your following statement: window.location.href = 'index.cfm?fuseaction=myapp.home';
if you try the full path OR relative url of index.cfm then i guess your problem would get solved. e.g. window.location.href = 'index.cfm?fuseaction=myapp.home'; thanks Prashant On Nov 20, 12:28 pm, Westside <malik.robin...@gmail.com> wrote: > Hi, > > I'm trying to use ColdFusion and JQuery but I'm having some problems > setting/reading session variables. I have a login box that I use > jquery to do the ajax work. In my ajax call I have this snippet > > $(form).ajaxSubmit({ > > type: 'POST', > > dataType: 'json', > > url: '/myapp/model/System.cfc?method=authenticate&returnFormat=json' > > success: function(resp, textStatus){ > if(resp[0]==true){ > window.location.href = 'index.cfm?fuseaction=myapp.home'; > } > > }); > > So within System.cfc there is a method called "authenticate", in this > method I'm trying to set some session variables (e.g, session.email, > session.title) that I can reference once the user is logged in. So > if the response from the ajax call returns true, the user gets > redirected to this other page using window.location.href shown above. > > For some reason though, these session variables don't exist > (session.email, session.title) when I try to cfdump them out on the > 'index.cfm?fuseaction=myapp.home' page. I can dump them in the CFC > and see that they are getting set correctly, but outside the CFC, they > dont show up. Can anyone please shed some light on why I can't see my > session variables? It mus thave something to do with calling the CFC > directly or something.... > > Thanks