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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Cookie

Status
Not open for further replies.

GertJannie

Programmer
Nov 24, 2005
13
BE
Hi, i already asked a few questions here, read some books and getting better at C#, but now i'm stuck, i'm making a program that shows a web image (i also asked this on the forum) but to see the image you need to have a session cookie loaded.
Can anyone tell me the easiest way to include a session cookie in C#?
If you know a way but it's not the easiest, just tell me :)

Thx in advance

Gert-Jan...
 
What do you mean with keys? sorry i'm still a noob at C# i hope you understand
 
A Key is a session variable. It will only exist as long as the user's session is available. Using cookies can be a pain sometimes because browsers let you disable cookies. You basically use cookies if you have "user preferences" that you want to save on their computer. If it's just variables that you will be using during their visit to your site, then you should use session variables (Keys)

Do a google search on ASP .net and Keys
 
I don't understand where to search for, how did you find those commands.?
 
No, this is only Vbscript :(.
Any other ideas, just tell me how you got those commandsLook

Session.Keys.Add();
Session.Keys[0];
 
If it's VBScript question, I suggest you post it in the VBScript forum (forum329) rather than the C# forum.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
No it's not a vb question, but JurkMonkey gave me a tutorial for vb. And i need for c# :)
 
Oh, sorry - I though you were saying it was vbscript that you wanted to do it in, not that the link you were given was vbscript.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
it's ok, anyway jurkmonkey can you tell me how you got those commands?
 
I used them a long time ago.

Do a google search for Session Variables C#

It should get you started
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top