Click here to Skip to main content
15,900,461 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How can I put a text value into Textarea, which is a part of asp-Table? Pin
led mike8-Aug-06 11:18
led mike8-Aug-06 11:18 
AnswerRe: How can I put a text value into Textarea, which is a part of asp-Table? Pin
Guffa8-Aug-06 23:14
Guffa8-Aug-06 23:14 
QuestiongetXYclicked() on an image, on a webpage Pin
Ricardo Ramalho8-Aug-06 0:46
Ricardo Ramalho8-Aug-06 0:46 
AnswerRe: getXYclicked() on an image, on a webpage Pin
RichardGrimmer17-Aug-06 6:00
RichardGrimmer17-Aug-06 6:00 
AnswerRe: getXYclicked() on an image, on a webpage Pin
Rameez Mohammed17-Aug-06 20:56
Rameez Mohammed17-Aug-06 20:56 
QuestionDisplaying Barcode at client side Pin
meetbinu20037-Aug-06 21:58
meetbinu20037-Aug-06 21:58 
AnswerRe: Displaying Barcode at client side Pin
led mike8-Aug-06 11:16
led mike8-Aug-06 11:16 
QuestionCookies not saving Pin
Gregorb4u7-Aug-06 14:59
Gregorb4u7-Aug-06 14:59 
Hi,

I hope that someone can help as I have been going round in circles with this one.

I have two sites - lets call them site A and site B.

In site A I have links to site B which call some asp code to save details about the users of site A. To do this I have a javascript script on site A which calls an asp page on site B and then this page calls another page on site B which saves data to the database. Hope you follow me here as I am tired Wink | ;-)

Anyway in the last page I am creating a cookie and storing some information so that the next time the user calls the page on site A I can tell that he has already visited.

Now here is the problem. I can tell from my code that the page on site B (the last page to get called) is running the code to create the cookie but it is being destroyed once the call to this page has been completed. This is the issue as I am setting the cookie as below which should not expire for a year. Please see example code below

Response.Cookies("SiteB")= rnd(1000)
Response.Cookies("SiteB")("UserIP") = cstr(Request.ServerVariables("REMOTE_ADDR"))
Response.Cookies("SiteB")("DateOfFirstVisit") = date()
Response.Cookies("SiteB")("DateOfLastVisit") = date()
Response.Cookies("SiteB").Domain = ".SiteB.com"
Response.Cookies("SiteB").Expires = Date() + 365

This is now where my desperate plea for help comes in. Anyone who could shed some light on this would be a life saver as I have tried everything that I can think of - note that I am sure IIS is not causing this as I have tried various different settings.


Regards,

Gregor

AnswerRe: Cookies not saving Pin
Guffa8-Aug-06 12:33
Guffa8-Aug-06 12:33 
QuestionEditing Prompt Window of Javascript Pin
Mazdak7-Aug-06 8:40
Mazdak7-Aug-06 8:40 
AnswerRe: Editing Prompt Window of Javascript Pin
Guffa7-Aug-06 9:56
Guffa7-Aug-06 9:56 
Question[Message Deleted] Pin
DJGuo7-Aug-06 4:37
DJGuo7-Aug-06 4:37 
AnswerRe: Hown to write cookies in VB.NET? Pin
Guffa7-Aug-06 5:23
Guffa7-Aug-06 5:23 
AnswerRe: Hown to write cookies in VB.NET? Pin
Guffa7-Aug-06 12:38
Guffa7-Aug-06 12:38 
AnswerRe: Hown to write cookies in VB.NET? Pin
Guffa7-Aug-06 18:59
Guffa7-Aug-06 18:59 
GeneralRe: Hown to write cookies in VB.NET? Pin
Guffa8-Aug-06 8:00
Guffa8-Aug-06 8:00 
AnswerRe: Hown to write cookies in VB.NET? Pin
Mike Ellison7-Aug-06 6:38
Mike Ellison7-Aug-06 6:38 
Questioncross-frame scripting Pin
axwiec7-Aug-06 4:25
axwiec7-Aug-06 4:25 
QuestionHow do I programatically access ftp server with ssl Pin
stellasworkinc6-Aug-06 22:42
stellasworkinc6-Aug-06 22:42 
Questionnext button Pin
LovelyHelp6-Aug-06 19:31
LovelyHelp6-Aug-06 19:31 
AnswerRe: next button Pin
Guffa7-Aug-06 9:59
Guffa7-Aug-06 9:59 
AnswerRe: next button Pin
manowj11-Aug-06 20:43
manowj11-Aug-06 20:43 
QuestionGet HTML from element on different page Pin
eggie56-Aug-06 14:57
eggie56-Aug-06 14:57 
AnswerRe: Get HTML from element on different page [modified] Pin
manowj11-Aug-06 20:35
manowj11-Aug-06 20:35 
GeneralRe: Get HTML from element on different page Pin
Mavaddat Javid24-Oct-09 16:01
Mavaddat Javid24-Oct-09 16:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.