472,344 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,344 software developers and data experts.

GUID values repeating

IN IIS 6.0, classic .asp

I have been creating new GUID's through this block of code

set typ = server.createobject("Scriptlet.TypeLib")
guid = TRIM(MID(cstr(typ.GUID),2,36))
Response.Cookies("guid") = guid
Response.Cookies("guid").path = "/"
Response.Cookies("guid").expires = now() + 1
set typ = nothing

Lateley, some visitors to the website are actually receiving the same guid.

How is this possible? Is there a process that may be used to reset the guid
delevery sysem?
Julian

Mar 26 '07 #1
5 3401
how do you know they have the same guid ?

"stjulian" <st******@discussions.microsoft.comwrote in message news:ek**************@TK2MSFTNGP02.phx.gbl...
IN IIS 6.0, classic .asp

I have been creating new GUID's through this block of code

set typ = server.createobject("Scriptlet.TypeLib")
guid = TRIM(MID(cstr(typ.GUID),2,36))
Response.Cookies("guid") = guid
Response.Cookies("guid").path = "/"
Response.Cookies("guid").expires = now() + 1
set typ = nothing

Lateley, some visitors to the website are actually receiving the same guid.

How is this possible? Is there a process that may be used to reset the guid
delevery sysem?
Julian

Mar 26 '07 #2
They are entered into a database and I have seen repeats from different IP
addresses.

Julian

"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message
news:13*************@corp.supernews.com...
how do you know they have the same guid ?

"stjulian" <st******@discussions.microsoft.comwrote in message
news:ek**************@TK2MSFTNGP02.phx.gbl...
>IN IIS 6.0, classic .asp

I have been creating new GUID's through this block of code

set typ = server.createobject("Scriptlet.TypeLib")
guid = TRIM(MID(cstr(typ.GUID),2,36))
Response.Cookies("guid") = guid
Response.Cookies("guid").path = "/"
Response.Cookies("guid").expires = now() + 1
set typ = nothing

Lateley, some visitors to the website are actually receiving the same
guid.

How is this possible? Is there a process that may be used to reset the
guid
delevery sysem?
Julian


Mar 27 '07 #3
GUID's are unique so the problem may be how/when the information is being saved to the database.

"stjulian" <st******@discussions.microsoft.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
They are entered into a database and I have seen repeats from different IP addresses.

Julian

"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message news:13*************@corp.supernews.com...
>how do you know they have the same guid ?

"stjulian" <st******@discussions.microsoft.comwrote in message news:ek**************@TK2MSFTNGP02.phx.gbl...
>>IN IIS 6.0, classic .asp

I have been creating new GUID's through this block of code

set typ = server.createobject("Scriptlet.TypeLib")
guid = TRIM(MID(cstr(typ.GUID),2,36))
Response.Cookies("guid") = guid
Response.Cookies("guid").path = "/"
Response.Cookies("guid").expires = now() + 1
set typ = nothing

Lateley, some visitors to the website are actually receiving the same guid.

How is this possible? Is there a process that may be used to reset the guid
delevery sysem?
Julian



Mar 27 '07 #4
....and how do you know they're not the same user ?
IP address may not be definitive.

--
Tim Williams
Palo Alto, CA
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message news:13*************@corp.supernews.com...
how do you know they have the same guid ?

"stjulian" <st******@discussions.microsoft.comwrote in message news:ek**************@TK2MSFTNGP02.phx.gbl...
IN IIS 6.0, classic .asp

I have been creating new GUID's through this block of code

set typ = server.createobject("Scriptlet.TypeLib")
guid = TRIM(MID(cstr(typ.GUID),2,36))
Response.Cookies("guid") = guid
Response.Cookies("guid").path = "/"
Response.Cookies("guid").expires = now() + 1
set typ = nothing

Lateley, some visitors to the website are actually receiving the same guid.

How is this possible? Is there a process that may be used to reset the guid
delevery sysem?
Julian



Mar 27 '07 #5
that's a valid point , although you should reply to the original poster who asked the question...
"Tim Williams" <timjwilliams at gmail dot comwrote in message news:uy**************@TK2MSFTNGP03.phx.gbl...
...and how do you know they're not the same user ?
IP address may not be definitive.

--
Tim Williams
Palo Alto, CA
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot comwrote in message news:13*************@corp.supernews.com...
>how do you know they have the same guid ?

"stjulian" <st******@discussions.microsoft.comwrote in message news:ek**************@TK2MSFTNGP02.phx.gbl...
IN IIS 6.0, classic .asp

I have been creating new GUID's through this block of code

set typ = server.createobject("Scriptlet.TypeLib")
guid = TRIM(MID(cstr(typ.GUID),2,36))
Response.Cookies("guid") = guid
Response.Cookies("guid").path = "/"
Response.Cookies("guid").expires = now() + 1
set typ = nothing

Lateley, some visitors to the website are actually receiving the same guid.

How is this possible? Is there a process that may be used to reset the guid
delevery sysem?
Julian



Mar 27 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim...
24
by: Ilija_G | last post by:
Hi, Is there any replace for "Select @@identity" that could return "just inserted" GUID as a primary key? Has anyone tested what's faster,...
6
by: Jim Heavey | last post by:
When I use the new(Guid), the GUID which is generated is all zeros. Is there a technique for the system to assign a real Guid? Do I have to...
7
by: Steve | last post by:
I need to generate a unique number/string of some description and thought a guid would be ideal. Any ideas on how to generate a guid? I'm not...
2
by: jason | last post by:
Hello everyone, I have a C# object library which encapsulates data. Data is keyed by way of Guid values, which are stored in the objects as...
0
by: jason | last post by:
I have the following code in a C# class library method: // GUID VERSION Guid gUserID = new Guid(sUserID); Guid gAuthorityID = new...
5
by: rcolby | last post by:
Evening, Wondering if someone can point me in the right direction, on how I would compare a system.guid with a system.byte. system.guid...
14
by: Roy | last post by:
Is there an equivalent class function in C# to generate sequencial guid just like the NewSequentialID() function in SQL Server 2005?
4
by: Marc | last post by:
Hi, I don't get it I cannot get this to work, can somebody give me a hint Table1 contains a field Id which is a GUID as primary key and DATA a...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.