I’ve been asked to integrate receipt printing for a software I’ve been developing and the thermal printer my client uses is a very cheap one ordered from eBay for $36.31. There are more developer friendly feature rich printers available but they are very expensive. Who wants to use a expensive printer when the customers will throw away the receipt anyway? UPDATE: After seeing the feature set of the more expensive Epson printer, I do think that anyone who wishes to have receipts printed, should use a feature rich printer. Some even have color printing capabilities.
Recently (Not so long ago, more like 10 mins ago) my asked me to automatically redirect the user to the login screen after session is expired. I googled it, found 2 ways. One works well with NON-AJAX websites and it is the simplest.
If you are making a site like facebook, then using the above method would cause number of users to decrease from 1 billion to 0. Why? because this method counts only full page refreshes, not ajax requests.
I am accessing a 3rd party client WCF secured web service using a client certificate issued by them. I have added this client certificate to my servers' certificate store. (Ref#1 (packing a certificate), Ref#2 (importing to store))
And I have the client WCF configuration as follows: