Results 1 to 2 of 2

Thread: How to handle user objects??

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    How to handle user objects??

    I have a simple "webshop" style application, where I ahve several classes (user, product security etc)

    First I use forms validation to authenticate the user.. if he is authenticated I let the security class create an instance of User(or Admin) that I will store in a session object to use when I travel between the pages.

    Now the problem:

    In my admin class I ahve a method called "CreateUser" which will be called when the admin fill out a new user form and click submit...

    but how will I call it? Do I have to get the admin object from sessiona nd call it like that? Or is there a better way to solve it?
    Perhaps create the objects and responsibilities differnt? How is it normally solved?
    Kind regards
    Henrik

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    Is this way or parsing entire user objects in sessions a good idea? How cold it be solved instead?

    kind regards
    Henrik

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width