James, >From this code, I can't figure out where you "instantiate" the session var, store to it, and read back from it? I know there's not instantiation in clojure(???). I hope your able to get what I'm having trouble figuring out.
I'm not sure whether the magic happens here: (let [n (session :n 1)] -or- (assoc-in [:session :n] (inc n))) In the code from: https://gist.github.com/608048. Hope you get what I'm asking? Thanks again, shree On May 11, 3:32 am, Shree Mulay <shreemu...@gmail.com> wrote: > > There's an example of Ring sessions linked from the Ring wiki: > > >https://gist.github.com/608048 > > > Does that help? > > > - James > > On May 10, 6:19 am, James Reeves <jree...@weavejester.com> wrote: > > > > > > > > > > > On 10 May 2011 07:24, Shree Mulay <shreemu...@gmail.com> wrote: > > > > For the life of me, I can't get sessions to work, immaterial of which > > > tutorial I try and get going??? Is there any tutorial out there that > > > explicitly explains everything for a newb like me? After several > > > round, I did successfully get form params to work! YEAH! But now, I'd > > > like to create a login so that the user can login and have state - but > > > I can't get SESSIONS TO WORK??? > > > There's an example of Ring sessions linked from the Ring wiki: > > >https://gist.github.com/608048 > > > Does that help? > > > - James > > @James, the problem with the example you've linked to, is it doesn't > help me figure out how to link, for example, a userid picked up from a > form into a session. Or how to set a session value to true/false, > etc. > > I would appreciate a more comprehensive example, perhaps - a few more > & simpler examples, etc. It's like compound example built into a > single function. Also, would be nice to see session information passed > around from one page to another (ie., routes???)... [is this even > possible?] > > I don't want to use sandbar, either. Well, I couldn't figure out how > to get its "wrap-stateful-session" to work properly. > > I'm trying to accomplish setting up a login form. > > At least I got rings params to work; I'd like to now have some of the > information from submitted forms to get stored into session variables, > eh... > > THANKS IN ADVANCE, > > shree -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en