I've set up several existing mg app examples
(quickstart,plantomatic,DC's mg security) plus butchered a couple
examples of my own (one live - bodygeek.com) in order to learn mg.

The problem I'm having is I took mg_security example, got rid of
cfscript, hooked to mssql for login info, and everything in example
works fine. Being this uses cflogin I have username easily available
after login but I need userID.  In my simple mind I would set
session.userID at login and retrieve it in controller to pass to
model.  Everywhere I read, though, that is a big "no no".  So.... I've
spent over a day looking at various ways to set and get access to this
one session var properly and I'm thoroughly frustrated.

I see Ray Camden made something called a scope facade for canvas which
I've sort of been able to follow.  I've read about this approach
elsewhere as well except seems to be mostly called session facade in
other places.  His structure, however, uses this for pretty much his
entire authentication routine in canvaswiki and I think canvaswiki is
unity so not sure if anything dated.  The one other session facade
routine from 2007 I found online I'm almost certain has an error in it
as written.  It simply doesn't make sense as it calls a function it
never defines (or appears to me never defines).  Regardless I can't
get that example to work.

So the question - Is there a "preferred" or "standardized' sort of a
way to accomplish accessing this one session var or small group of
vars in mg?  Plantomatic might touch on this but it dives into the ORM
world which I want nothing to do with, at least not yet.

Thank you to anyone who can shed light!

Irv

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to