I am going to develop an asp.net website. My problem is think that now my site is published on the internet. 100 Users are already logged to my website. And they opened customer registration form in the website. So we know that when user log to a website he is sending a get request for the specific page. Then the server is sending that page in HTML format and it destroy the page from the server side.
So think that after server sent the customer registration form to the user I am going to do a update to my website. What I am doing is removing some input fields from the customer registration form. So imagine that at the user's end he can see 10 textboxes but my updated version will only contain 5 textboxes. So now what? What is going to happen? Is this lead to an error?
I just took a small example. Think that this situation occur in the middle of a transaction.
What is the scenario that use to update a website that already published and always have online users?.
Just Recycle the Application pool, this will make a new request for the online users. Like a fresh start.
Related
Notifications within laravel website
I'am beginner of laravel framework. So there is no one experienced laravel developers in my town. There are nobody with whom I could discuss or speak about my laravel project. It's my first laravel project. The problem is I don't know, is everything in right way what I am doing? For example, thare are 2 types of users. 1 administrator, others are ordinary users. I would like to make notifications between administrator and ordinary users within website. If administrator sends message or something, it should send to chosen user.
Now I am writing notification database. And I have notification table, there are message, user_id(to whom I send this notification) in column name data. My questions
Is it right way of making notifications within website between administrator and ordinary users? I have just show this notification by selecting user_id from column name data and show this notification in User's profile(to whom sent by administator)?
Is it possible to send notifications with question like "Are you ready? Yes No" with clickable buttons Yes No. As I understand I have to create new table with columns message, user_id, status "Yes" or "No", so when user click yes button it will change the status of this message. Is it right way what I have wrote? Can you write me your ideas or logic of realizing this things. I will be grateful to You.
My name is Alex.
Sorry for my rather bad Englisch because i come from Germany.
I just started programming with Node.js.
Previously i made some small static HTML and CSS websites.
I have some beginner questions (which might be dump).
I think these questions are very general for now and have therefore not included any code examples.
So far I have written a static HTML website which I host locally on my computer using Node.js and Express.
My Questions are:
Which actions within a web application should take place on the client side and which on the server side. For example, I have several buttons on the start page. With the help of which predefined users can log in. When clicking on a button, the user should be redirected to the login page. The user name of the respective user should be entered directly into the username field on the login page.
How do I implement such a transition?
The username would probably have to be passed to the server using a post call. How does the user get to the next page? Should this be a simple link or should I send the new HTML document to the user via app.sendFile()?
For example, how do I change tags in an HTML document using Node.js. The same example as before a user is logged in and redirected to the next page. Now he should be greeted with his name. The name can be read from a database using the UUID.
How do I get this name into a tag?
Do I need a template engine or are there other ways to change a static HTML page.
Thank you in advance for your help.
In my opinion, security-critical parts logic be placed on the server (logging in, checking balance, authorization, etc.).
Traditionally, no code on the client side is required. You click a link/submit a form, which sends a request to a server, the server responds, the client displays the new page.
Using client side code, however, can make your app smoother and reduce the load of the server. For example: the user clicks on the shopping cart button. Instead of reloading the whole page, the user sends an ajax request, and the server responds with the cart data. Then the client updates the document, displaying the formatted cart data.
You can't "change html tags" from nodejs. You can send a response. If you send a html response, you decide how to produce the response. You can just concatenate html strings, but using a template engine is a better solution.
TLDR: Is it possible to email a login button which will open a web page and enter the appropriate user information into the username/password fields? Is it possible to embed this within an HTML button, or possibly in SQL injection? If so, where should I start my research to make this happen?
OK, so what I am tasked with is generating the billing lists for about 2000 non-technical users. Currently we use a third party billing site which does not have an API or any way to authenticate users from the URL heading. What we have been doing is using mail-merge to email users their username and password along with a link to the billing site. This is great, except that our users are... special. We get dozens of phone calls a day from elderly users who can't copy/paste the given information into the website.
What I am looking for is someone to point me in the right direction for making an email click here button that will open the web page, enter the username and password (from a CSV/XML of usernames/passwords) and click enter.
I'd even settle for opening the webpage with their credentials filled into the appropriate fields. Is there a way to do this? What is the best way to go about this?
Before we get into best practices/security, CC information isn't stored on the site, and the only user info view-able is the invoice, so security isn't a huge concern here since the users can't set their own passwords (username / password generated from static fields in another database silo).
Not looking for someone to do this project for me, but perhaps a few friendly pointers in the right direction for how to do this.
Is it possible to email a login button which will open a web page and enter the appropriate user information into the username/password fields?
Not unless either:
The website is specifically designed to allow that. Since you said it was a third party side, then you would have to ask the people who wrote it.
The site suffered from an XSS security vulerability. (Explaining how to search for one would be too broad for a SO answer, searching for one would be illegal pretty much everywhere).
Cannot phrase correct term or language that I want, so finding hard to search.
Q: From server side, push line of text to user.
Building MVC 4 (asp.net - c# .net4) application. One page will have a "notifications" coloumn which will be a list of new tasks the user should do.
The tasks stored in a database.
When a new task has been added to the database, I want to push a line of html text to this notifications list with out the user having to refresh the page.
Is this possible, or do I need to have the user client side run on timer to request update of notifications?
thanks,
Please point me to similer questions or resources and the obiouse resource that Im looking for.
You are looking at a timer unfortunately if you need to support a wide range of browsers but you can use web sockets to push the information on clients that have the support. Check the website http://www.websocket.org/
Here is a basic tutorial on web sockets:
http://www.html5rocks.com/en/tutorials/websockets/basics/
I am trying to implement a simple login system with facebook, but I need users to pick a username. What I was thinking was to get all the information I need from facebook, request permissions, then add the information to the database, redirect to a form asking for a username and then add that to the database, to the same entry.
I think a transaction is needed so I don't end up with any half completed database entries. But I've only ever used them on the same page, so I'm wondering if this is safe? If it fails then there is no point where I would be telling the database to roll back the changes and it would be with a transaction open.
Is this right or will it be ok?
I think you made it more complicated than it should be :)
No need to enter facebook id into database before username as you can always grab it later.
Forward user to login screen (or better just open login popup using javascript FB API)
Once user is logged in forward them to username picking page (or better do javascript popup without page redirect)
When user is entered username request the current user id from facebook on server side (by either using graph api or fql) and then if everything is ok enter this record to database.