Re: [appengine-java] Session and AppEngine
Yeah thanks, I used your tips and Guice serve and now it's working fine ! Christian On Wed, May 5, 2010 at 7:12 AM, Stephan Hartmann wrote: > What is your logic that initiates a session? > > The container does not create a session if there is no need for it. > In a servlet you can initiate a session by calling > >HttpServletRequest.getSession(true) > > and in a JSP > > by adding the attribute > > session="true" > > to a page directive. > > Regards, > Stephan > > > 2010/5/5 Christian Goudreau > >> Hummm I got a weird issue >> >> I added to my appengine-web.xml this line : >> true >> >> But no JSESSIONID cookie is created. >> >> Anyway Idea why ? >> >> Christian >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> google-appengine-j...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-appengine-java+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Session and AppEngine
What is your logic that initiates a session? The container does not create a session if there is no need for it. In a servlet you can initiate a session by calling HttpServletRequest.getSession(true) and in a JSP by adding the attribute session="true" to a page directive. Regards, Stephan 2010/5/5 Christian Goudreau > Hummm I got a weird issue > > I added to my appengine-web.xml this line : > true > > But no JSESSIONID cookie is created. > > Anyway Idea why ? > > Christian > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Session and AppEngine
All my object implements Serializable and I don't think that explain why JSESSIONID isn't created... but thanks, I tried to revert back my actions that implements IsSerializable for Serializable, but it didn't work either. Christian On Tue, May 4, 2010 at 11:44 PM, yjun hu wrote: > hi, are u using java ? if yes, the object you push into session must > implements java.io.Serializable . > you can follow this blog for more info: > http://www.hapeblog.com/blog.shtml?id=7 > > On Wed, May 5, 2010 at 10:54 AM, Christian Goudreau < > goudreau.christ...@gmail.com> wrote: > >> Hummm I got a weird issue >> >> I added to my appengine-web.xml this line : >> true >> >> But no JSESSIONID cookie is created. >> >> Anyway Idea why ? >> >> Christian >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> google-appengine-j...@googlegroups.com. >> To unsubscribe from this group, send email to >> google-appengine-java+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> > > > > -- > dream or truth > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Session and AppEngine
hi, are u using java ? if yes, the object you push into session must implements java.io.Serializable . you can follow this blog for more info: http://www.hapeblog.com/blog.shtml?id=7 On Wed, May 5, 2010 at 10:54 AM, Christian Goudreau < goudreau.christ...@gmail.com> wrote: > Hummm I got a weird issue > > I added to my appengine-web.xml this line : > true > > But no JSESSIONID cookie is created. > > Anyway Idea why ? > > Christian > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- dream or truth -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.