Hi,
yes you have to do exactly like this - i mean i do that myself and it works perfectly fine, i don't think there's a more simple way to do it =)
Your last question is a good one :/
You have the possibility to manually add your a session, with:
ILSessionManager current addSession: aSession
You can then add different sessions, depending of your application. However - and that i cannot tell yet - you have to explicitly call this method with your session when you do initialize an application.
I did not check yet, but i think it's quite simple ;)
;)
-Steven Costiou-
2010/6/4 ZuLuuuuuu
<[hidden email]>
Hello,
I have an application which requires login. I want to remember the
login information throughout the usage once entered. For example, the
member name and the password.
My first question is to confirm that I should subclass the ILSession
and add instance variables like memberName and password, then add
accessors etc?
Then I might use ILSessionManager sessionClass: MySessionSubclass so
that it uses this new session class. But my applications might need to
use different session classes, so my second question is if there is a
way to assign different session classes for different applications?