one way would be to do something like this (untested):
pulbic class Session
{
private static _currentSession;
public string Username;
public static Session Current
{
get{
if(_currentSession == null)
_currentSession = new Session();
return _currentSession;
}
set{ _currentSession = value; }
}
}
then access like:
var username = Session.Current.Username;
Andy
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Getting-my-head-round-MVC-Login-type-app-tp3515200p4374071.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch