| Author |
Topic Search Topic Options
|
michael
Senior Member
Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 November 2004 at 9:57am |
|
I would not even worry about a autonumber. I am sure your users have to login or something, basically having a username. Just take the username as your PK as it has to be unique right? There is no real reason to use a Integer field in your temp table. If there are FK's just relate them to the username which you always know in your application.
|
|
|
 |
theSCIENTIST
Senior Member
Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 November 2004 at 4:34pm |
|
Actually there's not going to be a login, this application will be available to anons who maybe interested in the service, then they will go about filling the forms.
Submitting the 1st form is not a problem, a autonumber is be generated and I need to know it so the 2nd and all the others can relate to it. Either that, or I store all info in cookies and at the end submit the whole thing.
4KB cookie limit is enough for my data, however I still don't know if this limit applies to the whole cookie, or to the size of the individual key's data.
|
|
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 November 2004 at 4:48pm |
|
The 4kb thing is for the whole cookie, but you could have a cookie for each page.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
Mart
Senior Member
Joined: 30 November 2002
Status: Offline
Points: 2304
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 November 2004 at 4:54pm |
|
But if you do that your going to have a problem if someone has cookies disabled and does not know how to enable them.
You could write instructions though I suppose
|
 |
theSCIENTIST
Senior Member
Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 November 2004 at 11:34pm |
|
Last 2 posts relate well to my current stage.
Been testing the forms and hitting them quite hard, all fileds with full capacity, and after page 4 cookie size was exasted, so I decided to add a cookie per page, all works fine now.
Then I went to issue of users with cookies disabled, so I set a cookie, then read from it and act accordingly, problem is, that I disable cookies in my browser, and it still sets/reads it, tried many other things, delete all cookies, manually delete all cookies ;), change cookie name so it starts afresh, still the browser sets/reads normally, whats is going on?
Could it be that I using localhost and not a domain?
Also what would be the best way to test for cookies?
|
|
|
 |