I have followed the Security Tutorial and Successfully implemented Logins with my application.
I have a Mdi Parent which opens up after the login. The MDIParent does not use any PersistenceManagers at all. The MDIParent is basically a switchboard form for accessing other forms of the application.
The MDIParent has a few MDIChild Forms which have there own persistence managers. When i open any of the Child Forms i get this error:
"Failed to login before using PersistenceManager or submitted null credentials."
I guess this is because i logged in under Persistence.DefaultManger.
I have to use seperate PM's for each child as it is the way my app has been designed , i cannot change it to use the one PM.
I noticed this comment in the LoginManager Class:
"Because one must login on every new PM before that PM can access a data source if that PM might have a different extension, you may have to give the SecureUser its own datasource key and route all extensions with this key to the database that holds SecureUser"
Is this what i should do and how do i acheive this?
Is there a way to solve this issue.
Thank You
|