Click to See Complete Forum and Search --> : A little help GUID


Nate1
11-12-2007, 09:46 PM
I need to create an ASP page that will run when requested from a CRON job, I have the code to do what I want but the hosting company suggested

A simple security measure was to use a guid for the page name, as well as a key in the query string.

Eg, www.yoursite.co.nz/19a44a90-918e-11dc-8314-0800200c9a66.aspx?key=2b9038f4-918e-11dc-8314-0800200c9a66

Where do I get the GUID from, ?
can create a key for the Querystring

lmf232s
11-19-2007, 02:33 PM
<%
Function GetGuid()
Set TypeLib = CreateObject("Scriptlet.TypeLib")
GetGuid = Left(CStr(TypeLib.Guid), 38)
Set TypeLib = Nothing
End Function
Response.Write GetGuid()
%>

Nate1
11-19-2007, 04:53 PM
Is this somewhat like Nicknames and Fullnames, two names to reference the same form?

thispage.aspx is same as 1234-5648-9784-1445...
GUID?

If this is right would anyone be able to retrieve a GUID