This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

quick question about magic cookie  RSS feed

 
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: 11077
173
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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!