Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - State compromise client/server
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

State compromise client/server

 Post Reply Post Reply Page  <12
Author
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.