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
Post a Comment