I currently have a program that crashes if the sessionid is longer
than 9 digits. Is there a way to trim the length of the string that
IIS kicks out and limit it to 9 digits, or if that can't be done, is
there a function I can use to trim the 10 digit string down to 9
digits?
Thanks,
Bill 6 5202
"Bill" wrote ... I currently have a program that crashes if the sessionid is longer than 9 digits. Is there a way to trim the length of the string that IIS kicks out and limit it to 9 digits, or if that can't be done, is there a function I can use to trim the 10 digit string down to 9 digits?
Wouldn't that then kinda make the id useless?
Regards
Rob
I am not sure why you would want to do this...
Left(sSessionID ,9)
--
Cheers!
Ryan N.
---------------------------------
Funny...this worked yesterday....
"Bill" <bi***********@ gospellight.com > wrote in message
news:8d******** *************** **@posting.goog le.com... I currently have a program that crashes if the sessionid is longer than 9 digits. Is there a way to trim the length of the string that IIS kicks out and limit it to 9 digits, or if that can't be done, is there a function I can use to trim the 10 digit string down to 9 digits?
Thanks,
Bill
Why would a 9 digit id be useless? In fact, most of the time, it does
kick out a 9 digit id. But the software this interfaces with has a limit
of 9 digits the string can be, so it has to be trimmed if it is over
nine.
What I would like to know if is there is a way to configure IIS to limit
the size to 9 digits.
Bill
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
> Why would a 9 digit id be useless? In fact, most of the time, it does kick out a 9 digit id.
That wasn't his point. Let's say you have these two users:
sessionID = 1234567890
sessionID = 234567890
When you trim the guy with 10 to fit your "9-digit software," these two
users suddenly look the same.
How about instead of relying on IIS's session ID scheme, you roll your own.
--
Aaron Bertrand
SQL Server MVP http://www.aspfaq.com/
Bill,
Why are you storing the ID gen'd by IIS? At least in IIS 5.0 (perhaps this
has changed in IIS 6.0...I will have to check the docs) there is no
guarantee of a unique ID from one session to the next.
--
Cheers!
Ryan N.
---------------------------------
Funny...this worked yesterday....
"Bill" <wi************ @yahoo.com> wrote in message
news:uC******** ******@TK2MSFTN GP10.phx.gbl... Why would a 9 digit id be useless? In fact, most of the time, it does kick out a 9 digit id. But the software this interfaces with has a limit of 9 digits the string can be, so it has to be trimmed if it is over nine.
What I would like to know if is there is a way to configure IIS to limit the size to 9 digits.
Bill
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Hex(SEssion.Ses sionID)
Ray at work
"Bill" <wi************ @yahoo.com> wrote in message
news:uC******** ******@TK2MSFTN GP10.phx.gbl... Why would a 9 digit id be useless? In fact, most of the time, it does kick out a 9 digit id. But the software this interfaces with has a limit of 9 digits the string can be, so it has to be trimmed if it is over nine.
What I would like to know if is there is a way to configure IIS to limit the size to 9 digits.
Bill
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gerard Cany |
last post by:
I have a problem with a javascript that seems related to the number/size of
parameters sent by the form
The method for the form is POST (not GET, I know the size limit with
GET)
The symptom : some times, I receive a javascript error "Invalid syntax
on line xxx", this line contains the call to submit as shown in the
following lines :
<input type="button"
value="<%=Session("Bouton_EnregistrerFicheInclusion")%>"
|
by: SJM |
last post by:
In some VBA code I am building an SQL string to append a new record to a
table. The string involves 40 fields. What I am finding is that it works
with 39 fields but when I add 40 it fails with the error 3134 (syntax
error). I am 99% sure there is no syntax error, rather I suspect that it
could be due to limit on string length or number of fields. I have not been
able to find anything that defines this though.
|
by: Tom Dacon |
last post by:
I'm raising an event in a component, using ISynchronizeInvoke.Invoke, and my
event args object contains a string as one of its members. If the string is
longer than 63 bytes, the Invoke call pulls an unhandled exception in
System.Windows.Forms.dll, to the effect that the string length must be less
than 64. If I trim the string to 31 characters (62 bytes) everything's fine
and the event goes as intended. But if the string length is 32 or...
|
by: VM |
last post by:
How can I limit the use of the PC's virtual memory? I'm running a process
that basically takes a txt file and loads it to a datatable. The problem is
that the file is over 400,000 lines long (77 MB) and after a while I get the
Windows message saying that the virtual memory's getting really low. Plus
the machine gets really sluggish (with multi-threading). Is it possible to
use the virtual memory until it reaches a certain limit and then use...
|
by: vadim |
last post by:
Hi,
Does anybody know if there is limit on the length of string in web.config
file?
I am particularly interested in appSettings section
add key = key value= value, Is there limit on the value length?
Can it be 500 or 1000 charcters?
Thank you
| |
by: Burton Wilkins |
last post by:
Dear Authorities:
I realize that in communicating with a Web Service, one is essentially
passing a string as a parameter.
Is there a limit over the Internet how long a parameter string can be? Or
can the string be of an unlimited length, and is then simply divided up into
packets?
Is there a danger of loosing data if the string being passed in a parameter
|
by: Daniel |
last post by:
c# string size limit? length of string limit?
|
by: =?Utf-8?B?YzY3NjIyOA==?= |
last post by:
Hi all,
I am thinking about doing this since I got several cases that some of our
internal users open more than one browser at the same time from our server.
When one of the transactions was not completed finished, the second browser
jusk pick up some session variables from the first browser and process right
after that. It messed up everything.
I was thinking about use remote_addr, but it seems not working since we are
behind the...
|
by: rn5a |
last post by:
I am working on a database driven application wherein the SessionID
gets populated in a database table column.
After populatating the DB table column with several SessionIDs, I have
noticed that the length of all the SessionIDs is 24 i.e. all the
SessionIDs have 24 alphanumeric characters.
Now what I would like to know is is the length of SessionIDs ALWAYS
GUARANTEED to be 24 in ASP.NET?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |