Cookie

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
Stxvxn
-


Joined: 14 Jun 2004
Posts: 3

PostPosted: Mon Jun 14, 2004 9:33 pm    Post subject: Cookie Reply with quote

I can't get my Cookies work with Abyss Web Server.
I've set my IE to accept all cookies, but it doesn't work.

Can anyone help me?
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon Jun 14, 2004 9:35 pm    Post subject: Reply with quote

Your ASP Script doesn't set the cookie right. May we see it?
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Tue Jun 15, 2004 6:41 pm    Post subject: Reply with quote

Yes...we'll need to see your code in order to determine what's going wrong.

Most of the time to write a cookie you can use the following example:

<% Response.Cookies("SomeField") = CookieValue %>

"SomeTitle" is the name of the cookie's field
"CookieValue" is the value that you want to assign to "SomeField". It can come from a varialbe that you assign a value to or it can be a Request value from a form, querystring, or Server Variable.

There's a ton of other cookie options you can set, such as the cookie's expirations (they automatically destroy at the close of the browser), storing multiple values, etc...

Your best bet is to check out some sites for ASP. I suggest the following:

http://asp101.com/

http://www.learnasp.com/learn/

http://www.w3schools.com/asp/default.asp

---

but show us your code and we'll try to help.
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
Stxvxn
-


Joined: 14 Jun 2004
Posts: 3

PostPosted: Thu Jun 17, 2004 2:45 pm    Post subject: Reply with quote

Here's the code that creates the cookie:

Dim strCookie
strCookie = Request.QueryString("Url")
Response.Cookies("Homepage") = strCookie

Here's the code that gets the cookie:
Dim Redirect
Redirect=Request.Cookies("Homepage")

So far no problem in my opinion. I'm not so familiar with Abyss Web Server. I use it to create and test ASP-websites off-line before I put the website on the server of a hosting-company.
So my question is can I use cookies with Abyss Web Server off-line?? Or do I need to be online?
I downloaded some ASP-samples with cookies from ASP101.com but even with those scripts the cookies don't work.

Please help :)
[/b]
Back to top View user's profile Send private message
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Thu Jun 17, 2004 6:49 pm    Post subject: Reply with quote

Abyss has NOTHING to do with ASP pages (well it does...such as serving the page) but...you have to have AHTML (an ASP interpreter) installed with Abyss.

Another thought would be...if you're not using Abyss for hosting web sites - just for test...why not just use the personal IIS server that comes with Windows for your testing/development? It nativly supports ASP.

You code looks right, by-the-way.
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
Stxvxn
-


Joined: 14 Jun 2004
Posts: 3

PostPosted: Fri Jun 18, 2004 4:16 pm    Post subject: Reply with quote

You're right: I use Abyss for serving my ASP-pages.

Well when I bought my computer I also bought XP Home Edition. Later on, I discovered that IIS server comes with XP Professional, so I thougt I buy Abyss for testing/development (it's a cheaper solution than buying XP Professonial).

Where can I get AHTML??
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Sat Jun 19, 2004 1:13 am    Post subject: Reply with quote

ActiveHTML is available at SeliSoft's website, http://www.selisoft.com/en/ahtml/index.html .
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
mcwilliams132
-


Joined: 27 Jul 2003
Posts: 167
Location: Oshkosh, WI

PostPosted: Mon Jun 21, 2004 6:59 pm    Post subject: Reply with quote

Yep XP home would bar you from using PWS...there are some work arounds with a copy of Windows 2000 Pro...but it's a bit tricky....

Anyways...your best bet is to look for the link to the Free version of AHTML - found within the Abyss forums somewhere...no time for me to dig it up. but I know it's there. The link to SelieSoft will only take you to the 30day trial (becuase they discontinued the free version).
_________________
::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!"
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group