• Post Reply Bookmark Topic Watch Topic
  • New Topic

quick question about magic cookie

 
Jonathan Elkharrat
Ranch Hand
Posts: 170
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as far as i could understand from the instruction, there's no connection
between the magic cookie and the lock cookie.
while the former is used to identify the data format (i think so ) the
latter is a random number assigned uniquely to clients. am i right?

 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct!

You can use a constant to verify the magic cookie and see if your database file is a valid one (based on the cookie). The lock cookie is used to uniquely identify clients.
 
Roberto Perillo
Bartender
Posts: 2273
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roel De Nijs wrote:You can use a constant to verify the magic cookie and see if your database file is a valid one (based on the cookie). The lock cookie is used to uniquely identify clients.


That's what I did!
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!