Math Behind The Sessionid
how unique the sessionid is in ASP. What is the math behind it's creation, and what are the probobolities of it being reproduced, i.e. 1/10000? or 1 in twenty million? Can someone give me some guidance on this? I'm trying to create some unique numbers for
data assignement, and would like a way that does not replicate.
View Replies
ADVERTISEMENT
Didn't remember if anybody had started started like this, but I decided it would be cool to start it again. If you have a math function request ask it below, or if you have made one then add it:
I have a few cretegean plane (think thats how you spell it), calculations. One request I have is, does anybody have a short function for square root?
View Replies
View Related
i need to print the x value of a circle (center is 0 and max = 1)
depending on the angle entered
i know it is possible with functions but i dont remember wich one
example :
user enter 0 : returned value is 0
user enter 45 : returned value is 0.5
user enter 90: returned value is 1
user enter 135 the returned value is 0.5
user enter 180 the returned value is 0
user enter 225 the returned value is -0.5
...
and so on
View Replies
View Related
I am trying to add my numeric fields together to produce a total. Does the following make sense to anyone? Code:
View Replies
View Related
I want to enter a math formula to caculate how many pages are there for each thread.
At this point, I set the page break to 15 posts for each thread. In other words, one page contains 15 replies to one thread. If there are more than 15 and less than 30 replies, then page number is equal to 2. If more than 30, the page number is equal to 3.
If I translate this to a math formula, it would be like
total replies divided by 15 = the number of page (this number should round up like 0.x=1)
if total replies is 3, so 3 divided by 15 = 0.2 (round it up to 1)
if total replies is 18, so 18 divided by 15 = 1.2 (round it up to 2)
How can I do this?
View Replies
View Related
<%
Dim BeforeTax
Dim A
Dim B
Dim C
A = OrderSummary.Fields.Item("Order_Total").Value
B = OrderSummary.Fields.Item("Tax").Value
C = OrderSummary.Fields.Item("Shipping").Value
BeforeTax = A-(B+C)
%>
I tried this after I tried to have just one line with BeforeTax = OrderSummary.Fields.Item("Order_Total").Value-....
Any idea why I get an error?
View Replies
View Related
normally if i want to do a simple math equation and user only key in A and B but the C will be auto generate. and i wanna store all these three variables in the system. can anyone write a simple program for me? i declare inside head tag rite?
View Replies
View Related
i am trying to remove stock from my database when someone orders a product. basically the code has no errors but it wont change the stock level.
how do i get asp to subtract one number from another the bit of code i have for this part of the function is Code:
View Replies
View Related
I have a page which has a buyers premium amount field and an empty field the client will place the amount they wish to bid.
How can I get the page to calculate the premium total and the grand total. will I need to put some sort of button on the page to request the calculation or can it be triggered automatically?
View Replies
View Related
How can I round the value to the nearest whole number. I have searched on math.round but
can not get it to function. Here is how I am getting the results if not division by zero. Code:
View Replies
View Related
I just developed a simple math calculator using c# in asp.net, now i want to be able to check for the higest and lowest answer from the label control, how to do this?
View Replies
View Related
I have several forms written in asp and I would like to make a couple of the fields autocaculate, but I have no clue how to go about this. I only need addition and division.
View Replies
View Related
I have a piece of code on two computers. On my work pc the sessionid is constant and doesn't change. Whereas on my home PC, everytime I refesh the page or go back to it, it increments itself.Can anyone tell me why this is the case, as I thought the Sessionid was individual to each browser session.
View Replies
View Related
we are implementing WSDPro here for load
balancing. So, when someone comes in they may get
redirected to www1.domain.com, www2.domain.com, etc. When
they first come in, they hit www.domain.com, and then get
redirected to 1, 2, 3 , etc. The problem is, in our
solution, we are setting a session variable before the
redirect, and are losing it as the SessionID is changing
because it is acting like we are changing servers. It is
my understanding that the SessionID is really just a
cookie, and since other cookies can have their domain
changed, this one should as well. Something
like .Domain=".domain", which should handle everything in
from of the domain. We ahve tried to change this in the
Global.asa and got a "you can't do this error", 162 I
believe
View Replies
View Related
I have a simple page that uses session variables. Yes, it's in a
frameset, yes I've look at aspfaq.com, yes I've tried loading the
independet pages in their own window, yes i've tried praying to god.
It works fine every *other* refresh.
the session variables seem to totally disappear, then, upon refresh
they come back, then, upon refresh again, they disappear.
on, off, on, off.
Upon closer inspection, I found that the sessionid is changing. but
not randomly.
I'll get 229104087, then 229063070 the next refresh, then back to
229104087, etc.
wut's up?
View Replies
View Related
When I hit my homepage the first time (e.g. after a reboot), the server variable HTTP_COOKIE is empty. If I reload the page, HTTP_COOKIE has got a value. This makes sense, but I'm looking to request HTTP_COOKIE on the first page hit. Any ASP-based ideas?
(Otherwise I'll program a page reloader...)
View Replies
View Related
i read the "developing active server component with ATL" paper. has anyone develop get session id by ATL? i get some error about illegal call of non static member function.
View Replies
View Related
When I create a simple page with this code, the sessionID shows differently
each time I refresh the page.
On every other refresh it is blank, on every other, it is new. What is
happening here?
Dim sessStr as String
sessStr = Response.Cookies("ASP.NET_SessionId").Value
Response.Write("Session ID=" & sessStr)
View Replies
View Related
When a new request is made to the server a new session id is issued to the
client (a browser instance). The problem I’m facing is that session id that
is already assigned to a browser instance is getting recycled for another
browser instance by ASP.NET When the client request is sent to Http server,
the available session id’s (that is already present in the pool) are recycled
from the session pool along with the authentication cookie. Again when a new
request was being done, then available session id is passed on to the client
causing Mix-up of sessions.
The formsauthentication ticket (cookie) is also getting recycled along with
the session cookie session.
Forms authentication ticket is issued if the user selects save me option in
login page. If the user selects save, then the user id is stored in a cookie encrypted
by forms authentication ticket. Code:
View Replies
View Related
My session id is expiring too quickly. How can I extend it to last for 30 minutes?
View Replies
View Related
Does session.sessionid change when an app goes from non-secure to secure layer?
View Replies
View Related
if it is possible to retrieve the session id inside the sub Session_OnEnd in global.asa? This is because i want to delete rows from database based on the sessionID that has just ended.
View Replies
View Related
wo have several sites on a same server and these sites use subdomains of a
top domain,such as www.mycom.com, admin.mycom.com, forum.mycom.com.now we
want these sites to share the session state(such as loginning state),so
,without concerning a web farm or sharing session state among different top
domain, the simplest way to achive this must be to set the domain of the
sessionid cookies asp sent to our top domain.( if it is possible through the
iis metabase , registry or something else . )
If it isn't possible to set the domain of the sessionId coookie asp sent
,then,concerning a web farm or sharing session state among domains, Could you
guys recommand some third-pathy session management asp components or
servers(such as aSMS,but i can't download it anywhere)?
View Replies
View Related
how could I know if a specific sessionid still exists or not. If there is a method or anything that can tell me about the existence of a specific sessionid .
View Replies
View Related
we've the following problem :
We have an asp-application which sets the cookie on first login. The cookie
will never be touched during user access. The user can work the whole day,
but after 6 to 7 hours, the cookie get 2-4 new asp-sessionid's thus
overwriting the very first entries in the cookie. Does anyone had the same
problem or has a solution. The server is a w2003 enterprise the client has
windows xp sp2.
View Replies
View Related
I am running my web application from with in Outlook.I found a strange
problem that it is creating different sessionId if i open a new window
using window.open from with in my application.I am pulling my hair all
along but no solution so far.
my application works fine when i run this in IE.It is Outlook2003
causing the problem.
View Replies
View Related
I use jmail to send email. Version 3.7. I want to send hyperlink in the mail body with sessionid variable. But I dont know how to concatenate it.
Here is the example which dont work.....
View Replies
View Related