| Niranjan Soni 2004-12-03, 7:53 am |
| Hello All
I am currently migration our WCS 5.1 Applications to WC 5.6. The instance
migration and database migration went alright but i am facing some problems
with WC application logic itself. The situation is as follows
I have a jsp page in my application which is included (using page include
directive) in all the jsps. I call this jsp as getResource.jsp. This jsp
activates the user registration databean and at every request it checks
whether the User logged into my commerce site is a registered user or not.
When the first page of my application is called which is Login.jsp,
getResource.jsp activates the databean but since there is no user associated
at this moment, WC uses -1002 (Guest User) to carry out the futher
processing. From Login.jsp, the user supplies a user id and password which
is then passed onto a customized Logon Command. In this command i set the
user supplied user id into the command context. When the next page is called
from this command, i still get user -1002 in the command context, which is
strange because i manually setup the user id into the command context.
I am unable to figure out why this is happening but i enabled trace logs on
my application and found that after the command execution, WC is resetting
the command context. I dont under what condition this is happening or whats
the reason for this.
Any help or ideas will be great.
Thanks
Niranjan Soni
|