reset password
Author Message
gf4t47
Posts: 2
Posted 00:26 Jan 25, 2013 |

"A user can only sponsor a project once. After a user sponsors a project, the Sponsor This Project link will no longer be shown to that user."

If using session cookies, the feature will become invalid after user log out or close the browser.

If using persistent cookies, it could expire by clearing the browser cookies manually.

Permanent solution may need to save flag associated the special user on the hard driver of the server.

So how long dose the hw2 require this feature to be active?

cysun
Posts: 2935
Posted 09:25 Jan 25, 2013 |

You don't need to store this information on the hard drive - just store it in Servlet Context like the projects and rewards.

Also it's not just a flag. A "pledge" involves a user, a project, an amount, and a reward the user selected, so it's likely that you need to create another class or two. You are using an OO language so get used to creating classes.

gf4t47
Posts: 2
Posted 10:30 Jan 25, 2013 |

All right, I was restricted on cookies and session since I thought which were the hw2 mainly about.  Indeed class is a better solution.