15,899,825 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by PGagliardi (Top 5 by date)
PGagliardi
15-Feb-23 13:24pm
View
Which kind of problems are you thinking about? Could you give me an example? Well, I understand one should examine the application in order to understand but i can tell you that is a very large and very complex web application first designed in 2008 on classic ASP and it's 15 years that uses the session end event with no issues at all. My first issue is that the customers (thousands) can generate pdf reports that are stored server-side in temp files, they have to be purged periodically in order to not saturate the storage (and they can be deleted only if the application is sure that the user doesn't need them anymore, naturally when logged out). The fact is that our typical web application mimic a desktop application, which was the target of ASP.Net Webforms, but we use a lot of custom code and no forms components at all, thus the migration to .Net core is not a problem apart from rethinking the session logic.
PGagliardi
15-Feb-23 4:53am
View
The session of course contains only anonymous data associated to the user (the session cookie), I only need to know when the session ends in order to perform cleaning and manteinance jobs. All the logic and data is on the server side. Moreover, if the system fails (could happen) the locking logic relies on a timestamp from which the system can assume the session is dead.
PGagliardi
27-Jun-17 8:34am
View
This sounds good! But can you provide a working example also for an UPDATE statement?
Tried this:
UPDATE mytable SET subscription = (CASE WHEN (SELECT COUNT(*) FROM mytable WHERE course=course_id) > max_reservations THEN 0 ELSE 1 END) WHERE id=id_subscription
but I got the following error:
"You can't specify target table 'mytable' for update in from clause".
PGagliardi
27-Jun-17 2:55am
View
Of course, but I have no practical experience in doing so and I don't know the risks, furthermore I have read that locking tables is not a suggested procedure,giving the fact that the best practice is to use transactions (but really I don't imagine how to define a transaction in this case).
PGagliardi
27-Jun-17 2:55am
View
Deleted
Of course, but I have no practical experience in doing so and I don't know the risks, furthermore I have read that locking tables is not a suggested procedure,giving the fact that the best practice is to use transactions (but really I don't imagine how to define a transaction in this case).