groovy - Create and Get Session in grails -


currently working grails. tried create , session in grails controller:

if (user) {     session.user = "user"     flash.message = "hallo ${user.fullname}!!!!!"     println(session.user)     redirect(action: "login")   } 

but failed create , get.

about session object in grails, try following official document: [http://grails.org/doc/2.3.4/ref/servlet%20api/session.html][1]

so, try :

session["user"] = "john" asset "john" == session.user 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -