andre1011's Profile
Reputation: 1
Apprentice
- Group:
- Active Members
- Active Posts:
- 86 (0.1 per day)
- Joined:
- 12-January 11
- Profile Views:
- 1,477
- Last Active:
Apr 01 2013 05:12 PM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Who Cares
- Favorite Browser:
- FireFox
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Latest Visitors
-
OLaceX 
26 Mar 2013 - 15:05 -
GunnerInc 
24 Mar 2013 - 00:07 -
macosxnerd101 
15 Sep 2012 - 12:39 -
modi123_1 
15 Sep 2012 - 11:37 -
BenignDesign 
15 Sep 2012 - 11:23 -
Jstall 
13 Feb 2012 - 07:35 -
#define 
20 Nov 2011 - 18:10 -
no2pencil 
12 Jan 2011 - 03:33
Posts I've Made
-
In Topic: Detect if users leave the domain
Posted 1 Apr 2013
I thought by killing the session I could stop someone from getting sensitive data like Social Security Numbers or Credit Card Numbers, how secure are sessions? Am I worrying too much about nothing? -
In Topic: Detect if users leave the domain
Posted 1 Apr 2013
YES this was helpful THANK YOU
StefanOnRails, on 31 March 2013 - 03:03 AM, said:What are you asking is quite unusual, at least for me. The only idea I have would be to pass a value from page to page via POST method every time the user clicks a link, asking for a new page. Then you can check if the value was set, if not it means the request wasn't sent from one of your pages.
[snip]
However, there's a major problem in this design and I'm talking about the user ability to change the url via address bar. There's no problem if they want to go on a different website, but if they access another one of your pages a new session is created, even though the user never left the website.
I see your point, but how much security should you have for an eCommerce website? Also If the browser is using tabs like Firefox, closing the tab does not kill the session.
CTphpnwb, on 31 March 2013 - 05:20 AM, said:
andre1011, on 30 March 2013 - 11:19 PM, said:If the user closes the window or goes to another website a new session should be started.
Suppose you somehow got this working. What would you want to do if the user left your window open but used another browser? Would you kill the session then too if you could? Why would you, and if you wouldn't then why do you want to if they browse a different page on the same browser? -
In Topic: Detect if users leave the domain
Posted 30 Mar 2013
I am trying to write a basic eCommerce web site where the same user can add items to a shopping cart with a click and php will know that it is the same user for the same session. (For this web site the user has no log in button, stupid I know but these are my requirements) If the user closes the window or goes to another website a new session should be started. -
In Topic: how to get back to the beginning of an array
Posted 26 Mar 2013
Here is my new working code, thanks for all the help
;filename: arrayTest.asm .586 .MODEL FLAT INCLUDE io.h .STACK 4096 .DATA string BYTE 32 DUP (?) instructionLabel BYTE "Enter a positive number or -9999 when finished",0 outputLabel BYTE "The number inside the array is",0 messageOut BYTE "End Program",0 stringArray BYTE "Good Bye World",0 stringOUT BYTE 100 DUP (?) numberArray DWORD 100 DUP (?) ;Declare an uninitialized array 100 DWORDs long numberValue DWORD ? numberOfElements DWORD ? .CODE _MainProc PROC mov numberOfElements, 0 ;numberOfElements = 0 mov ecx, 0 ;ecx = 0 whileLoop: ;start of while loop mov eax, 0 ;eax = 0 input instructionLabel, string, 32 ;get input from user and store in eax atod string ;convert input string to number cmp eax, -9999 ;compare input number with sentinel value je endWhileLoop ;if eax = -9999 jump to end of while loop mov numberArray[4*ecx +4], eax ;use index addressing to move value from eax into array inc ecx ;ecx = ecx + 1 inc numberOfElements ;numberOfElements = numberOfElements + 1 jmp whileLoop ;always jump to label whileLoop endWhileLoop: ;end of while loop mov ecx, 0 ;ecx = 0 bobby: mov eax, numberArray[4*ecx + 4] ;take a particular element in array and move it into eax dtoa stringOUT, eax ;convert number inside eax into a string output outputLabel, stringOUT ;display message box with label and the converted string inc ecx ;ecx = ecx + 1 dec numberOfElements ;numberOfElements = numberOfElements - 1 cmp numberOfElements, 0 ;compare numberOfElements with 0 jne bobby ;if numberOfElements does not = 0 then jump to label bobby output messageOut, stringArray ;display message box "Good Bye World" mov eax, 0 ;exit with return code 0 ret _MainProc ENDP END
Once again thank you, you have been a big help! -
In Topic: how to get back to the beginning of an array
Posted 26 Mar 2013
My book does not discuss xor for another two chapters, please tell me what this code this
xor esi, esi
I know it is the inverse or the logical "or" instruction and will produce a "1" for every non matching pair of "1's" and "0's" but what is the net effect of the above instruction why is it used?
If I wanted to zero out esi I can use
mov esi, 0
My Information
- Member Title:
- D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Location:
- Sacramento, CA
- Full Name:
- Andre Long
- Years Programming:
- 4
- Programming Languages:
- C, C++, Java, PHP, JavaScript/Ajax
Contact Information
- E-mail:
- Click here to e-mail me
Friends
andre1011 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
andre1011
25 Oct 2011 - 19:08