473,804 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GUID values repeating

IN IIS 6.0, classic .asp

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

set typ = server.createob ject("Scriptlet .TypeLib")
guid = TRIM(MID(cstr(t yp.GUID),2,36))
Response.Cookie s("guid") = guid
Response.Cookie s("guid").pat h = "/"
Response.Cookie s("guid").expir es = 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 3507
how do you know they have the same guid ?

"stjulian" <st******@discu ssions.microsof t.comwrote in message news:ek******** ******@TK2MSFTN GP02.phx.gbl...
IN IIS 6.0, classic .asp

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

set typ = server.createob ject("Scriptlet .TypeLib")
guid = TRIM(MID(cstr(t yp.GUID),2,36))
Response.Cookie s("guid") = guid
Response.Cookie s("guid").pat h = "/"
Response.Cookie s("guid").expir es = 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.supe rnews.com...
how do you know they have the same guid ?

"stjulian" <st******@discu ssions.microsof t.comwrote in message
news:ek******** ******@TK2MSFTN GP02.phx.gbl...
>IN IIS 6.0, classic .asp

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

set typ = server.createob ject("Scriptlet .TypeLib")
guid = TRIM(MID(cstr(t yp.GUID),2,36))
Response.Cookie s("guid") = guid
Response.Cookie s("guid").pat h = "/"
Response.Cookie s("guid").expir es = 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******@discu ssions.microsof t.comwrote in message news:%2******** ********@TK2MSF TNGP04.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.supe rnews.com...
>how do you know they have the same guid ?

"stjulian" <st******@discu ssions.microsof t.comwrote in message news:ek******** ******@TK2MSFTN GP02.phx.gbl...
>>IN IIS 6.0, classic .asp

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

set typ = server.createob ject("Scriptlet .TypeLib")
guid = TRIM(MID(cstr(t yp.GUID),2,36))
Response.Cookie s("guid") = guid
Response.Cookie s("guid").pat h = "/"
Response.Cookie s("guid").expir es = 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.supe rnews.com...
how do you know they have the same guid ?

"stjulian" <st******@discu ssions.microsof t.comwrote in message news:ek******** ******@TK2MSFTN GP02.phx.gbl...
IN IIS 6.0, classic .asp

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

set typ = server.createob ject("Scriptlet .TypeLib")
guid = TRIM(MID(cstr(t yp.GUID),2,36))
Response.Cookie s("guid") = guid
Response.Cookie s("guid").pat h = "/"
Response.Cookie s("guid").expir es = 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******** ******@TK2MSFTN GP03.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.supe rnews.com...
>how do you know they have the same guid ?

"stjulian" <st******@discu ssions.microsof t.comwrote in message news:ek******** ******@TK2MSFTN GP02.phx.gbl...
IN IIS 6.0, classic .asp

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

set typ = server.createob ject("Scriptlet .TypeLib")
guid = TRIM(MID(cstr(t yp.GUID),2,36))
Response.Cookie s("guid") = guid
Response.Cookie s("guid").pat h = "/"
Response.Cookie s("guid").expir es = 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
2754
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 Guid guid = server.createobject("scriptlet.typelib").guid guid=Left(guid,instr(guid,"}")) genguid=guid
24
10891
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, working with Guid or Autonumber ?
6
3686
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 manually calculate a GUID?
7
1723
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 using SQL server so SELECT NEWID() is out but something similar in code would be great. I've looked at the System.Guid class but can't figure how to have it generate a fresh GUID.
2
3202
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 read-only Guid properties. However, we have a Classic ASP application that has to read these Guid values, and sometimes pass them back into the the object libraries (for LoadByID type functions).
0
1517
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 Guid(AuthorityID); oCommand.Parameters.Append( oCommand.CreateParameter("@authorityid", ADODB.DataTypeEnum.adGUID, ADODB.ParameterDirectionEnum.adParamInput, System.Runtime.InteropServices.Marshal.SizeOf(gAuthorityID),
5
6345
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 (pulled from sql server table with a data type of uniqueidentifier, originally taken from objectGUID from active directory domain)
14
6571
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
5525
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 string, I want to insert a new row but it does not work. void gv_RowCommand(Object sender, GridViewCommandEventArgs e) { ClientScript.RegisterStartupScript(GetType(), "MyAlert2", "alert('Command=" + e.CommandName + "');", true); if (e.CommandName == "New")
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.