Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session variables

Status
Not open for further replies.

Phonez

Technical User
Jan 16, 2002
58
GB
Is there a maximum amount of text that a session variable can hold. I am trying to store the value of a textfield so I can use it later to send in an email.

Is there any alternatives to session variables which would be able to store more?
 
You could store the text in a database. Both Oracle and MS SQL Server have the ability to store a large amount of data in a single field. You could tie the database record to the session id. Be sure to delete the record with the session_onend in the global.asa file.

If you don’t have access to a database, you could store the information in a text file and tie the name of the text file to the session id. You would also want to delete the file with session_onend.

Thanks,

Gabe Condie
 
I was hoping to come across an easier way to do this. The database idea was my second plan but it just seems a long way around an easy problem

Thanks anyway
 
maybe you should consider using a cookie...
I am not a real expert of the thing but you can find great tutorials all over the web.
try this one to start:

What I am sure of is that you should really really avoid to store large amounts of text in a session variable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top