Variables on ASP pages - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > ASP » Variables on ASP pages


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-27-2006   #1 (permalink)
connor
Junior Member
 
Join Date: Jul 2006
Age: 36
Posts: 10
Default Variables on ASP pages

Hi all , I am building a site with ASP (VBscript) .
the site connected to the database (MySQL)
I have several different pages on my site they are working with different tables in database but I have to dilever information from one page to others ,I don't know how to do that .
For Ex:
When a user enters my site he is on first page (Index.asp) , if he moves to other pages ,I need to transfer his username and other information .

Please help
thanks
connor
connor is offline   Reply With Quote


Old 08-01-2006   #2 (permalink)
Nazir
Member
 
Join Date: Jul 2006
Age: 48
Posts: 45
Default Re: Variables on ASP pages

This can be done by either using Cookies or Session object to pass user profiles or other data.Cookies should be used only to store non-sensative information, or information that can be retrieved from an authoritative source. Cookies shouldn't be trusted, and their contents should be able to be validated.

If using cookies, remember that it’s quite different from storing data in the Session Object, and the following should be taken into account:
  • Cookies are passed back and forth on every request. That means you are paying for the size of your cookie during every HTTP GET and HTTP POST.
  • If you have ten 1-pixel spacer GIFs on your page used for table layouts, the user's browser is sending the same cookie eleven times: once for the page itself, and once for each spacer GIF, even if the GIF is already cached.
  • Cookies can be stolen, sniffed and faked. If your code counts on a cookie's value, have a plan in your code for the inevitability that cookie will get corrupted or be tampered with.
  • What is the expected behaviour of your application if a cookie doesn't show? What if it's 4096 bytes? Be prepared. You should design your application around the "principle of least suprise". Your application should attempt to heal itself if cookies are found missing or if they are larger then expected.
  • Think twice before Base64 encoding anything large and placing it in a cookie. If your design depends on this kind of technique, rethink using either the Session or another backing-store.
Nazir is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
. How do I redirect 100+ .html pages to .php pages? jason Site and Server Administration 0 08-01-2006 03:55 PM
How to declared the Global variables in web.config in asp.net ? gage .NET 3 07-10-2006 05:53 AM
How do u add extra pages? zkinny Forum Management 3 02-17-2006 04:16 PM


footer left
All times are GMT. The time now is 09:49 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Loans | Master Resale Rights | Personal Injury Attorney Los Angeles | Homeowner Loans | Glitter Graphics

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49